OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only
  • 1.  multiple spans

    Posted 03-01-2021 18:38
    Hi, If I compare <text:p style-name= styleA >AB<text:span style-name= styleB >CD<text:span style-name= styleA >EF</text:span>GH</text:span>IJ</text:p> with <text:p style-name= styleA >AB<text:span style-name= styleB >CD</text:span><text:span style-name= styleA >EF</text:span><text:span style-name= styleB >GH</text:span>IJ</text:p> where styleA includes style:letter-kerning=TRUE and styleB includes style:letter-kerning=FALSE Then I would think that in the first case there is no letter kerning between D and E but in the second case there is letter kerning between D and E. Andreas -- Andreas J. Guelzow, PhD FTICA Registrar & Associate Vice-President, Enrolment and Planning Professor, Mathematical & Computing Sciences Direct: +1 780 479 9290 Toll-Free: +1 866 479 5200 concordia.ab.ca


  • 2.  Re: [office] multiple spans

    Posted 03-01-2021 19:18
    hi Andreas, On 01.03.21 19:38, Andreas J Guelzow wrote: Hi, If I compare <text:p style-name="styleA">AB<text:span style-name="styleB">CD<text:span style-name="styleA">EF</text:span>GH</text:span>IJ</text:p> with <text:p style-name="styleA">AB<text:span style-name="styleB">CD</text:span><text:span style-name="styleA">EF</text:span><text:span style-name="styleB">GH</text:span>IJ</text:p> where styleA includes style:letter-kerning=TRUE and styleB includes style:letter-kerning=FALSE Then I would think that in the first case there is no letter kerning between D and E but in the second case there is letter kerning between D and E. how do you implement the second case? you only get letter kerning between 2 characters if you send both of them to the text shaping together, but you can't do that if they have different formatting or a different font, which may well be the case between styleA and styleB. in LO Writer, the only text-properties attribute that *doesn't* prevent kerning at span breaks is the dreaded officeooo:rsid extension, and that was a pain to implement... regards, michael -- Michael Stahl Senior Software-Entwickler LibreOffice allotropia software GmbH Flachsland 10 22083 Hamburg Germany michael.stahl@allotropia.de https://www.allotropia.de Registered office: Hamburg, Germany Registration court Hamburg, HRB 165405 Managing director: Thorsten Behrens VAT-ID: DE 335606919


  • 3.  Re: [office] multiple spans

    Posted 03-01-2021 19:48
    Hi Michael, I am just working from the ODF Standard and was looking for a property that does not just affect a single character. (In Gnumeric you cannot specify kerning between characters, therefore so far I have not yet to worry about implementation of this.) Andreas On 2021-03-01 12:17 p.m., Michael Stahl wrote: hi Andreas, On 01.03.21 19:38, Andreas J Guelzow wrote: Hi, If I compare <text:p style-name= styleA >AB<text:span style-name= styleB >CD<text:span style-name= styleA >EF</text:span>GH</text:span>IJ</text:p> with <text:p style-name= styleA >AB<text:span style-name= styleB >CD</text:span><text:span style-name= styleA >EF</text:span><text:span style-name= styleB >GH</text:span>IJ</text:p> where styleA includes style:letter-kerning=TRUE and styleB includes style:letter-kerning=FALSE Then I would think that in the first case there is no letter kerning between D and E but in the second case there is letter kerning between D and E. how do you implement the second case? you only get letter kerning between 2 characters if you send both of them to the text shaping together, but you can't do that if they have different formatting or a different font, which may well be the case between styleA and styleB. in LO Writer, the only text-properties attribute that *doesn't* prevent kerning at span breaks is the dreaded officeooo:rsid extension, and that was a pain to implement... regards, michael -- Andreas J. Guelzow, PhD FTICA Registrar & Associate Vice-President, Enrolment and Planning Professor, Mathematical & Computing Sciences Direct: +1 780 479 9290 Toll-Free: +1 866 479 5200 concordia.ab.ca


  • 4.  Re: [office] multiple spans

    Posted 03-02-2021 14:59
    hi Andreas, i found the attributes you are looking for :) 20.367 style:text-combine 20.385 style:text-rotation-angle these work in a similar way to the proposed text range box / text portion box / whatever it will be called: consecutive spans with the same value get combined into one 2-lines or rotated of course the specification doesn't currently say that this is the case... regards, michael On 01.03.21 20:47, Andreas J Guelzow wrote: Hi Michael, I am just working from the ODF Standard and was looking for a property that does not just affect a single character. (In Gnumeric you cannot specify kerning between characters, therefore so far I have not yet to worry about implementation of this.) Andreas On 2021-03-01 12:17 p.m., Michael Stahl wrote: hi Andreas, On 01.03.21 19:38, Andreas J Guelzow wrote: Hi, If I compare <text:p style-name="styleA">AB<text:span style-name="styleB">CD<text:span style-name="styleA">EF</text:span>GH</text:span>IJ</text:p> with <text:p style-name="styleA">AB<text:span style-name="styleB">CD</text:span><text:span style-name="styleA">EF</text:span><text:span style-name="styleB">GH</text:span>IJ</text:p> where styleA includes style:letter-kerning=TRUE and styleB includes style:letter-kerning=FALSE Then I would think that in the first case there is no letter kerning between D and E but in the second case there is letter kerning between D and E. how do you implement the second case? you only get letter kerning between 2 characters if you send both of them to the text shaping together, but you can't do that if they have different formatting or a different font, which may well be the case between styleA and styleB. in LO Writer, the only text-properties attribute that *doesn't* prevent kerning at span breaks is the dreaded officeooo:rsid extension, and that was a pain to implement... -- Michael Stahl Senior Software-Entwickler LibreOffice allotropia software GmbH Flachsland 10 22083 Hamburg Germany michael.stahl@allotropia.de https://www.allotropia.de Registered office: Hamburg, Germany Registration court Hamburg, HRB 165405 Managing director: Thorsten Behrens VAT-ID: DE 335606919