Talk:Ada Programming/Archive 5
Hey, please check this out. You may notice a couple of differences (like in chapter 2, I focused more on GNAT, what I considered to be the most complete section). Comments are welcome, and if you want the LaTeX source, just email me Incomplete Ada print version--Dragontamer 01:35, 31 December 2006 (UTC)
- I've uploaded my current work to the subversion repository (at /trunk/ada-latex/). I'll continue to be working on them more or less, but if anyone wants to help out, please message me. --Dragontamer 19:36, 9 January 2007 (UTC)
- I've reuploaded a snapshot of where I am. All the way upto Chapter 8 now. Long way to go, nonetheless. --Dragontamer 20:01, 11 January 2007 (UTC)
- Gook work. I wonder if there is a way for correctly writing Santiago Urueña's name and mine. If there is no possibility then it is probably preferable to avoid the accent and tilde and transform those characters to their closest ASCII equivalences: Uruena and Gomez. I don't know LaTeX but I am sure there are ways to compose Western Europe characters using ASCII codes. ManuelGR 13:13, 4 February 2007 (UTC)
- Oh, yes, it is certainly possible. I'm sorry I haven't been updating recently, but I'll see what I can do. (in LaTeX, it is as simple as typing Urue\~na.)--Dragontamer 19:55, 6 February 2007 (UTC)
Hey, as you can see on the image, there's a bug with actual PDF version (Media:Ada Programming.pdf). The Fonts used in this file seem not to work under Linux. Does anybody can fix it? MonteChristof 17:40, 3 February 2007 (UTC)
Non-standard fonts need to be added for files using such fonts. You shouldn't to create PDF without saving here fonts used in creation. Even if in consequence of that file "weight" will increased. MonteChristof 22:03, 4 February 2007 (UTC)
We need to update our entry at Wikibooks:Featured Books/Book2.
As you can see here the highlight extension has been installed on Wikibooks. We might compare the use of this extension with our current system. The advantage of this new system is easier editing of source programs, the disadvantage would be loosing the internal links to keywords and packages. Although in the C example we can see an external link to the printf reference, so there might be a chance of modifying the extension for linking words to reference pages — which fairly could be the Wikibook pages. It is probably the best idea to keep the current system, but the new extension probably deserves a look. ManuelGR 18:31, 15 May 2007 (UTC)
- It is a lot easier so realy worth a thought. --Krischik T 10:10, 17 May 2007 (UTC)
- Is this the thing based on ASHighlight? If so, it might need a patch here and there; try input
...
when '&' =>
return so_far & "&" & replace(next + 1);
-- if `quotes = true`, replace the quoting
-- characters, otherwise just leave the switch
when '"' =>
if quotes then
return so_far & """ & replace(next + 1);
end if;
when ''' =>
if quotes then
return so_far & "'" & replace(next + 1);
end if;
- OTOH, three dots seem to be o.K., which is good. A quick glimpse at the source reveals few comments. If output is to be hypertext, someone would have to apply changes in the mix of NFAs, parsing stacks, etc. in the C++. Not sure if this can be done using separation of concerns and separate addition of links/templates from highlighting code in just another derived class... Just my 2c.
Is there any feasible way to automatically convert the contents of this wiki book to man page format? I'm asking because I feel it would be a great addition, in particular given that most programming languages supported under linux come with their own set of documentation in the form of man pages, which is thus very conveniently usable. However, in this respect I feel that ada is currently suffering a lack of good and easily available documentation, that is also available in a shell environment via CLI. In fact, this would be a great addition to the gnat distribution! The preceding comment was written by an anonymous user
- I think it would make sense to have man pages for the reference sections, since man pages are references of functions or commands and not complete books. But these sections are still underdeveloped so it might make more sense to create man pages for the predefined environment extracting them from the Ada Reference Manual. By the way, although it is not the same there is an info version of the Ada Reference Manual which is available in Debian GNU/Linux in ada-reference-manual package. ManuelGR (talk) 11:40, 24 December 2007 (UTC)
I would like to propose a dedicated reference section for people with a particular programming background, where the mapping between common constructs from a given programming language to Ada syntax is illustrated (pretty much inspired by http://www.adahome.com/Ammo/Cplpl2Ada.html ). So that migration is simplified, this could be split into sub groups for each language (i.e. C++, Java) and could address a number of fixed issues (function def, classes, types, methods, var decl etc) The preceding comment was written by an anonymous user.
- I think it's a good idea. If you want to develop it, you are free to start, remember this is a wiki, and it is open to anyone. ManuelGR (talk) 11:52, 24 December 2007 (UTC)