[Top][All Lists]

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

Re: Including Hungarian as a language

From: Valeriy E. Ushakov
Subject: Re: Including Hungarian as a language
Date: Sun, 24 Jan 1999 17:54:02 +0300

On Sat, Jan 23, 1999 at 04:15:17PM -0700, Tamas Papp wrote:

> I had a look at include/ld, and found two definitions, namely
> @TableLabel and @FigureLabel. They are around lines 5500-700. They both
> refer to @CaptionFormat, and changing the parameter of @CaptionFormat
> solves my problem. Specifically, I just need to put @TableNumber (or
> @FigureNumber) at the beginning, and everything works fine.

Yes, currently labels are hardcided in `dl' as "Something N".  Grep
`dl' for @WordVal to find all the instances.

> So my idea is (I might be wrong) to introduce @TableLabelFormat and
> @FigureLabelFormat, which could be defined in standard.ld, in a similar
> manner to other things, using @Case and @Yield. Then the @CaptionFormat
> lines mentioned above could be
> @CaptionFormat { @TableLabelFormat } and 
> @CaptionFormat { @FigureLabelFormat )

I'm not sure these belong to the `standard.ld', I feel it's better to
make these into parameters to @DocumentLayout.  Then you can clone
`book' setup and tweak various parameters to suit Hungarian (or
whatever) practice and @SysInclude { hungbook } in your documents.

An additional parameter to @DocumentLayout could be introduced to
remain compatible with old documents (the code is completely

  def @DocumentLayout
    named @CaptionLabelFormat left word right number { word number }
    def @FigureLabel {
      @CaptionFormat {
        { figure @WordVal @FigureWord } @CaptionLabelFormat @FigureNumber

So for Hungarian you'll write in your setup:

    @CaptionLabelFormat { number word }

SY, Uwe
address@hidden                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen

reply via email to

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