[liblouis-liblouisxml] Re: liblouisutdml documentation

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 18 Jun 2014 11:41:54 +0200

On 06/18/2014 11:25 AM, Michael Whapples (Redacted sender mwhapples@xxxxxxx for DMARC) wrote:

Could you explain more as to what the macros for indexing and
crossreferencing semantic actions is meant to do?

If you look at the top of liblouisutdml.texi there are a bunch of macros (look for @macro). For example there is a macro for semantic actions and one for settings. These are then expanded into the code up until the @end macro command. So if you type
@setting{inputTextEncoding, ascii8} for example it will create

@tindex inputTextEncoding
@item inputTextEncoding ascii8

i.e. the setting will have an item in the current table and it will also have an entry in the Configuration Settings Index that texinfo provides.

For semantic actions the macro will create an item, an index entry and an anchor so that you can easily reference to it with the semanticref macro.

I removed the boxline semantic action, moving the functionality into a
style, but nothing has changed in the documentation. Is this macro
purely doing something internal in the documentation rather than the
more useful thing of synchronising with reality?

Are you saying that changing the code should automatically change the documentation? That would be a wonderful feature. If you show me a system that can do this I'd be very happy.

You will have to reflect code changes by updating the documentation. There are systems (doxygen for example) that can generate API documentation based on comments in the code. That is something that I have been looking into. But user documentation should be written specifically for that need and not extracted from the code IMHO.

Anyway hope this helps.
Christian
--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


-----
Tag der offenen Tuer: Die SBS laedt Sie herzlich ein: 28. Juni 2014 von 9 bis 16 Uhr. Mehr Informationen erhalten Sie unter http://www.sbs.ch/offenetuer
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: