Menu

#100 an <ig> tag as a shortcut for <p><l>abc</l><r><g>abc</g></p>

open
nobody
2017-08-17
2016-05-30
No

Reasons for an <ig> tag:
1. it's a lot of extra typing
2. it's error-prone because of the duplication
2. people get confused and think they're identical:

<Schindler> <e lm="hire out"> <i>hir</i><par n="liv/e__vblex"/><p><l><b/>out</l><r><g><b/>out</g></r></p></e>
Here the left and the right sides are the same right? So why can’t we have <i> tag?
<e lm="hire out"> <i>hir</i><par n="liv/e__vblex"/><i><b/>out</i></e>
<Unhammer> Schindler, they're not identical

Discussion

  • Kevin Brubeck Unhammer

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,9 +3,8 @@
     2. it's error-prone because of the duplication
     2. people get confused and think they're identical:
    
    -> <Schindler> <e lm="hire out">        <i>hir</i><par n="liv/e__vblex"/><p><l><b/>out</l><r><g><b/>out</g></r></p></e>                                                                          
    ->    
    ->  Here the left and the right sides are the same right? So why can’t we have <i> tag?                                                                                               
    -> <e lm="hire out">        <i>hir</i><par n="liv/e__vblex"/><i><b/>out</i></e>                                                                                                      
    +> <Schindler> `<e lm="hire out">        <i>hir</i><par n="liv/e__vblex"/><p><l><b/>out</l><r><g><b/>out</g></r></p></e> ` 
    +>  Here the left and the right sides are the same right? So why can’t we have <i> tag?   
    +> `<e lm="hire out">        <i>hir</i><par n="liv/e__vblex"/><i><b/>out</i></e>`                                                                                                
     > <Unhammer> Schindler,  they're not identical                                                                                                                                            
    
     
  • Kevin Brubeck Unhammer

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,7 @@
     2. people get confused and think they're identical:
    
     > <Schindler> `<e lm="hire out">        <i>hir</i><par n="liv/e__vblex"/><p><l><b/>out</l><r><g><b/>out</g></r></p></e> ` 
    ->  Here the left and the right sides are the same right? So why can’t we have <i> tag?   
    +>  Here the left and the right sides are the same right? So why can’t we have `<i>` tag?   
     > `<e lm="hire out">        <i>hir</i><par n="liv/e__vblex"/><i><b/>out</i></e>`                                                                                                
     > <Unhammer> Schindler,  they're not identical                                                                                                                                            
    
     
  • Jim O'Regan

    Jim O'Regan - 2017-05-18

    I like it: https://github.com/jimregan/lttoolbox/pull/37
    haven't updated dtds or such things

     
  • Jim O'Regan

    Jim O'Regan - 2017-08-12

    Updated dtd and expander, committed

     
  • Kevin Brubeck Unhammer

    Yay! But how do I use it?

    $ grep ig /tmp/foo.dix
            <e lm="hire out"> <i>hir</i><par n="vblex"/><ig><b/>out</ig></e>
    $ lt-comp lr /tmp/foo.dix /tmp/foo.bin
    Error (27): Invalid specification of element '<ig>' in this context.
    $ apertium-validate-dictionary /tmp/foo.dix
    /tmp/foo.dix:19: element ig: Schemas validity error : Element 'ig': This element is not expected.
    /tmp/foo.dix:19: element e: validity error : Element e content does not follow the DTD, expecting (i | p | par | re)+, got (i par ig)
    Document /tmp/foo.dix does not validate against /usr/share/lttoolbox/dix.dtd
    
     
  • Jim O'Regan

    Jim O'Regan - 2017-08-17

    Oops. Committed a fix. Works for me now.

     

Log in to post a comment.