bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preparation for use of XS paragraph formatting module


From: Gavin Smith
Subject: Re: Preparation for use of XS paragraph formatting module
Date: Tue, 30 Jun 2015 00:31:50 +0100

On 29 June 2015 at 20:24, Patrice Dumas <address@hidden> wrote:
>> I didn't want to write the C code to process underlying text
>> along with the main text, and also there may be performance
>> implications in doing things twice. So I've changed the code to use a
>> different approach. This is to insert a marker character, that will
>> not appear in the output, before a ., ? or ! which is allowed to
>> terminate a sentence in spite of a preceding upper-case letter. This
>> might seem like a hack, but it won't cause any problems because the
>> marker character used won't be passed in the argument otherwise, and
>> it was easy to implement the interpretation of this in XSParagraph.
>
> I do not like that much that kind of tricks, but if it works...  Also,
> the Paragraph.pm, Line.pm and Unfilled.pm were meant to be independent
> with a (well) defined API.  With this change, it seems that the calling
> code could need to know that there is a specific marker character that
> may be inserted.

I don't see why this can't still be the case. I'll add some comments
next to the functions explaining how the marker character can be used,
unless there's documentation somewhere else I should add it to?

>> Output looks like:
>>
>>    *note ª º ★ £ ⊣ ¿ ®:: *note ⇒ ° a b a sunny day å:: *note Å æ œ Æ Œ ø
>> Ø ß ł Ł Ð ð Þ þ:: *note ä ẽ î â à é ç ē e̊ e̋ ę:: *note ė ĕ e̲ ẹ ě j
>> ee͡:: *note ı Ḕ
>>
>> when it should be
>>
>>    *note ª º ★ £ ⊣ ¿ ®:: *note ⇒ ° a b a sunny day å:: *note Å æ œ Æ Œ ø
>> Ø ß ł Ł Ð ð Þ þ:: *note ä ẽ î â à é ç ē e̊ e̋ ę:: *note ė ĕ e̲ ẹ ě j ee͡::
>> *note ı Ḕ Ḉ
>
> Here it seems that the new output is better?

Yes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]