https://bugs.documentfoundation.org/show_bug.cgi?id=115319

            Bug ID: 115319
           Summary: Reference fields: support automatic Hungarian article
                    selection
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: nem...@numbertext.org

Description:
OOo Extension Hunart (Hungarian cross-reference toolbar) is an incomplete and
fragile workaround for this problem (it supports only sequence types, and it
uses hidden, but removable fields).

As a better solution, I propose the following OpenDocument improvement,
implemented in LibreOffice:

[text] additional text attribute for alternative language-specific reference
formats.

This is an enhancement, described in terms of changes to OpenDocument-v1.2 

1. RATIONALE

1.1 Use cases:

   Reference formats give an incomplete solution for
   Hungarian language, because they don't support
   automatic selection of the frequently used definitive
   articles before the reference.

   Supported (without article):

   "lásd 1. oldal" ("see page 1")

   Not supported (article "a" or "az"):

   "*az* 1. oldalon" ("on page 1")
   "*a* 2. oldalon" ("on page 2")

   LaTeX Babel package uses \aref, \apageref etc. commands
   for references with automatic Hungarian articles.

   Suggested text:reference-language attribute has
   got the following features:

   – i18n:

     It's possible to add alternative reference formats to
     Hungarian and other languages with similar needs.

   – back-compatibility:

     Only the alternative language-dependent layout,
     – in the case of Hungarian, only the articles – are
     missing in an older application, not the original
     reference format "chapter", "direction", "page" etc.

   – translation support:

     Alternative language-dependent layout of the
     reference fields is visible only in the same
     language text. For example, changing the
     language of a Hungarian document to English
     hides the Hungarian articles, helping
     translators.

1.2 Alternatives considered:
   None.

2. REQUESTED CHANGES TO THE ODF STANDARD

2.1 Text changes/additions:

   The text:reference-language attribute specifies an alternative way
   how information about a reference is displayed.

   The text:reference-language attribute has the data type languageCode.

   If the text:reference-language attribute is not specified, or the
   language of the text, where the reference inserted, is different from
   the specified reference language, common visualization of reference
   formats is used as the default.

   Letter case of the identifier can store the optional capitalization
   of the alternative reference format (like value "a" and "A" of
style:num-format).

   Examples

   – text:reference-language is not specified

     Visualizations: "1"; "2"

   – text:reference-language="hu" (Hungarian article "a" or "az")

     Visualizations: "az 1"; "a 2"

   – text:reference-language="Hu" (Hungarian article "A" or "Az")

     Visualizations: "Az 1"; "A 2"

   The text:reference-language attribute is usable with the following elements:
   <text:bookmark-ref> 7.7.6, <text:note-ref> 7.7.7, <text:reference-ref> 7.7.5
and
   <text:sequence-ref> 7.7.8.

2.2 Schema changes/additions:

   <rng:define name="text-common-ref-content">
       <rng:interleave>
           ...
           <rng:optional>
               <rng:attribute name="text:reference-language">
                   <rng:ref name="languageCode"/>
               </rng:attribute>
           </rng:optional>
           ...
       </rng:interleave>
   </rng:define>

3. IMPACTS

3.1 Conformance:
   This proposal will not add any mandatory features or behaviors.

3.2 Backwards compatibility:
   This element was not available in previous versions and is
   optional. Existing ODF processors may ignore it.

3.3 Accessibility impact:
   None.


Steps to Reproduce:
-

Actual Results:  
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101
Firefox/58.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to