Stian Rødven Eide
2009-Apr-29 10:45 UTC
[webgen-users] How to start with an exclamation mark
On pdfreaders.org we have a custom tag HeaderTitle which is unique for every translation. There seems, however, to be a problem with the Spanish version since it starts with an exclamation mark. Instead of the tag, the header title now reads #<YAML::DomainType:0xf78fc0d8>. You can see the issue live at http://pdfreaders.org/index.es.html Is there an easy way to solve this, or is the best option to remove the exclamation mark from the Spanish translation? all the best, /Stian
> On pdfreaders.org we have a custom tag HeaderTitle which is unique > for every translation. > > There seems, however, to be a problem with the Spanish version since > it starts with an exclamation mark. Instead of the tag, the header > title now reads #<YAML::DomainType:0xf78fc0d8>. You can see the issue > live at http://pdfreaders.org/index.es.html > > Is there an easy way to solve this, or is the best option to remove > the exclamation mark from the Spanish translation?This most certainly comes from webgen parsing the exclamation mark as YAML type. You didn''t say where the part with the exclamation mark was put, but if it is something like {HeaderTitle: !Hola!} or if it is defined in the meta information for a page file, you have to know that everything after the colon is parsed by YAML (and the meta information block of a page file is in YAML format). You can overcome this issue by using quotes, for example: {HeaderTitle: "!Hola!"} Let me know if this helps! Best regards, Thomas
Stian Rødven Eide
2009-Apr-30 09:32 UTC
[webgen-users] How to start with an exclamation mark
From Thomas Leitner, 2009-04-29:> > On pdfreaders.org we have a custom tag HeaderTitle which is unique > > for every translation. > > > > There seems, however, to be a problem with the Spanish version since > > it starts with an exclamation mark. Instead of the tag, the header > > title now reads #<YAML::DomainType:0xf78fc0d8>. You can see the issue > > live at http://pdfreaders.org/index.es.html > > > > Is there an easy way to solve this, or is the best option to remove > > the exclamation mark from the Spanish translation? > > This most certainly comes from webgen parsing the exclamation mark as > YAML type. You didn''t say where the part with the exclamation mark was > put, but if it is something like > > {HeaderTitle: !Hola!} > > or if it is defined in the meta information for a page file, you have to > know that everything after the colon is parsed by YAML (and the meta > information block of a page file is in YAML format). > > You can overcome this issue by using quotes, for example: > > {HeaderTitle: "!Hola!"} > > Let me know if this helps!The tag is defined in the meta info block, but the quotes certainly did the trick. Thanks a lot, Thomas. all the best, /Stian