You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@corinthia.apache.org by Ian C <ia...@apache.org> on 2015/06/28 12:39:47 UTC
ODF styles
When processing ODF styles there are a number of attributes for which
there are no CSS equivalents. eg font-size-asian
I have not seen a document where this is not equal to the general
font-size value.
I plan to put a crosscheck in to confirm this and so when translating
from CSS to ODF will default the value to be the same.
If there is a difference I guess we can create a -cor-font-size-asian
property to hold the value.
This should just be quietly ignored by a browser?
Same thing for any other properties I find that have no equivalent. Seem ok?
Re: ODF styles
Posted by Ian C <ia...@amham.net>.
Thanks Dennis, that looks like a good spot to add a link. That page is
a good ODF starting point and I don't want to confuse the issues with
our discussions so will add a link.
On Sun, Jun 28, 2015 at 11:51 PM, Dennis E. Hamilton
<de...@acm.org> wrote:
> Add this as a sub-page of <https://cwiki.apache.org/confluence/display/Corinthia/ODF> or maybe add a section to that page that links to Corinthia implementation notes for ODF.
>
> - Dennis
>
> -----Original Message-----
> From: Ian C [mailto:ianc@apache.org]
> Sent: Sunday, June 28, 2015 04:00
> To: dev
> Subject: Re: ODF styles
>
> On Sun, Jun 28, 2015 at 6:54 PM, jan i <ja...@apache.org> wrote:
>> Hi
>>
>> I cannot answer your question, but how can we keep the results of all
>> these valuable discussions, could you think of making a wiki page, just
>> with the "decisions" ?
>
> That's a good idea. ODF issues. And perhaps others for the different
> source and target types.
> Word, HTML, Latex or whatever ...
>
> I'll wait to get a response to this and create a page.
>
>>
>> rgds
>> jan i.
>>
>>
>> On 28 June 2015 at 12:39, Ian C <ia...@apache.org> wrote:
>>
>>> When processing ODF styles there are a number of attributes for which
>>> there are no CSS equivalents. eg font-size-asian
>>>
>>> I have not seen a document where this is not equal to the general
>>> font-size value.
>>> I plan to put a crosscheck in to confirm this and so when translating
>>> from CSS to ODF will default the value to be the same.
>>>
>>> If there is a difference I guess we can create a -cor-font-size-asian
>>> property to hold the value.
>>> This should just be quietly ignored by a browser?
>>>
>>> Same thing for any other properties I find that have no equivalent. Seem
>>> ok?
>>>
>
--
Cheers,
Ian C
RE: ODF styles
Posted by "Dennis E. Hamilton" <de...@acm.org>.
Add this as a sub-page of <https://cwiki.apache.org/confluence/display/Corinthia/ODF> or maybe add a section to that page that links to Corinthia implementation notes for ODF.
- Dennis
-----Original Message-----
From: Ian C [mailto:ianc@apache.org]
Sent: Sunday, June 28, 2015 04:00
To: dev
Subject: Re: ODF styles
On Sun, Jun 28, 2015 at 6:54 PM, jan i <ja...@apache.org> wrote:
> Hi
>
> I cannot answer your question, but how can we keep the results of all
> these valuable discussions, could you think of making a wiki page, just
> with the "decisions" ?
That's a good idea. ODF issues. And perhaps others for the different
source and target types.
Word, HTML, Latex or whatever ...
I'll wait to get a response to this and create a page.
>
> rgds
> jan i.
>
>
> On 28 June 2015 at 12:39, Ian C <ia...@apache.org> wrote:
>
>> When processing ODF styles there are a number of attributes for which
>> there are no CSS equivalents. eg font-size-asian
>>
>> I have not seen a document where this is not equal to the general
>> font-size value.
>> I plan to put a crosscheck in to confirm this and so when translating
>> from CSS to ODF will default the value to be the same.
>>
>> If there is a difference I guess we can create a -cor-font-size-asian
>> property to hold the value.
>> This should just be quietly ignored by a browser?
>>
>> Same thing for any other properties I find that have no equivalent. Seem
>> ok?
>>
Re: ODF styles
Posted by jan i <ja...@apache.org>.
On 28 June 2015 at 12:59, Ian C <ia...@apache.org> wrote:
> On Sun, Jun 28, 2015 at 6:54 PM, jan i <ja...@apache.org> wrote:
> > Hi
> >
> > I cannot answer your question, but how can we keep the results of all
> > these valuable discussions, could you think of making a wiki page, just
> > with the "decisions" ?
>
> That's a good idea. ODF issues. And perhaps others for the different
> source and target types.
> Word, HTML, Latex or whatever ...
>
> I'll wait to get a response to this and create a page.
>
Just go ahead and create the page, then others can modify it later.
you know the saying "the first step is the hardest" :-)
rgds
jan i.
>
> >
> > rgds
> > jan i.
> >
> >
> > On 28 June 2015 at 12:39, Ian C <ia...@apache.org> wrote:
> >
> >> When processing ODF styles there are a number of attributes for which
> >> there are no CSS equivalents. eg font-size-asian
> >>
> >> I have not seen a document where this is not equal to the general
> >> font-size value.
> >> I plan to put a crosscheck in to confirm this and so when translating
> >> from CSS to ODF will default the value to be the same.
> >>
> >> If there is a difference I guess we can create a -cor-font-size-asian
> >> property to hold the value.
> >> This should just be quietly ignored by a browser?
> >>
> >> Same thing for any other properties I find that have no equivalent. Seem
> >> ok?
> >>
>
Re: ODF styles
Posted by Ian C <ia...@apache.org>.
On Sun, Jun 28, 2015 at 6:54 PM, jan i <ja...@apache.org> wrote:
> Hi
>
> I cannot answer your question, but how can we keep the results of all
> these valuable discussions, could you think of making a wiki page, just
> with the "decisions" ?
That's a good idea. ODF issues. And perhaps others for the different
source and target types.
Word, HTML, Latex or whatever ...
I'll wait to get a response to this and create a page.
>
> rgds
> jan i.
>
>
> On 28 June 2015 at 12:39, Ian C <ia...@apache.org> wrote:
>
>> When processing ODF styles there are a number of attributes for which
>> there are no CSS equivalents. eg font-size-asian
>>
>> I have not seen a document where this is not equal to the general
>> font-size value.
>> I plan to put a crosscheck in to confirm this and so when translating
>> from CSS to ODF will default the value to be the same.
>>
>> If there is a difference I guess we can create a -cor-font-size-asian
>> property to hold the value.
>> This should just be quietly ignored by a browser?
>>
>> Same thing for any other properties I find that have no equivalent. Seem
>> ok?
>>
Re: ODF styles
Posted by jan i <ja...@apache.org>.
Hi
I cannot answer your question, but how can we keep the results of all
these valuable discussions, could you think of making a wiki page, just
with the "decisions" ?
rgds
jan i.
On 28 June 2015 at 12:39, Ian C <ia...@apache.org> wrote:
> When processing ODF styles there are a number of attributes for which
> there are no CSS equivalents. eg font-size-asian
>
> I have not seen a document where this is not equal to the general
> font-size value.
> I plan to put a crosscheck in to confirm this and so when translating
> from CSS to ODF will default the value to be the same.
>
> If there is a difference I guess we can create a -cor-font-size-asian
> property to hold the value.
> This should just be quietly ignored by a browser?
>
> Same thing for any other properties I find that have no equivalent. Seem
> ok?
>
Re: ODF styles
Posted by Peter Kelly <pm...@apache.org>.
> On 28 Jun 2015, at 5:39 pm, Ian C <ia...@apache.org> wrote:
>
> When processing ODF styles there are a number of attributes for which
> there are no CSS equivalents. eg font-size-asian
>
> I have not seen a document where this is not equal to the general
> font-size value.
> I plan to put a crosscheck in to confirm this and so when translating
> from CSS to ODF will default the value to be the same.
>
> If there is a difference I guess we can create a -cor-font-size-asian
> property to hold the value.
> This should just be quietly ignored by a browser?
>
> Same thing for any other properties I find that have no equivalent. Seem ok?
Sorry for such a delayed response...
There’s quite a few of these attributes in both OOXML and ODF. What I suggest we do (and what I’ve previously done for OOXML) is to just to ignore these attributes when converting to HTML. With bidirectional transformation, the update process is supposed to only touch parts of the document that have actually been changed. If a font-size-asian attribute is present it will remain unchanged.
Personally I don’t understand why this particular attribute is in either spec; it seems pointless as I would expect if one wanted a different font size for certain characters then a better way would be to have spans that wrap the relevant characters, and only have a single “font size” attribute. I’d be interested to know the origin of this attribute - I can’t think of why it’s needed, but presumably there’s a story behind it.
To see how it’s handled for OOXML, have a look at the WordPutRPr function in WordRPr.c (towards the end of the function where it deals with the font-size CSS attribute). Word documents have a normal font size and a “complex script” font size. The code here checks to see if the font-size from the HTML/CSS file differs from what was previously there, and if so, it sets both attributes to the same value. The same is done when creating a new document. If the font size was previously specified and is no longer set (i.e. the CSS property has been removed), then both the normal and complex script font size attributes are cleared.
—
Dr Peter M. Kelly
pmkelly@apache.org
PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)