DLang Spec rewrite (?)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon May 27 19:04:50 PDT 2013


On 5/27/13 9:32 PM, Jonathan M Davis wrote:
> On Monday, May 27, 2013 21:29:41 Andrei Alexandrescu wrote:
>> On 5/27/13 6:48 PM, Borden wrote:
>>> Oh, and another thing: XHTML adopts the XML practice of only defining
>>> the lt, gt and amp entities and no others (like nbsp, mdash, accented,
>>> or non-Latin characters).
>>>
>>> Since Unicode is, by and large, universal, I've read that the
>>> recommended practice for including characters not on a standard US
>>> keyboard is to copy them from a character map and save the file in a
>>> Unicode encoding. I intend to follow this guidance in writing the
>>> (x)html.ddoc template.
>>>
>>> As such, should I keep the existing 'entity' macros or use the Unicode
>>> characters in the DLang spec source files? I imagine that Andrei will
>>> immediately comment that .tex files are supposed to be in ASCII.
>>> Suggestions?
>>
>> The LaTeX configuration won't use your ddoc template. Knock yourself out.
>
> Yes, but he was wondering if he could change the .dd files to use Unicode
> characters directly instead of macros, which _would_ affect the LaTeX
> configuration.

Prolly that wouldn't be a good idea. Macros are the traditional level of 
indirection that solve all problems...

Andrei




More information about the Digitalmars-d mailing list