You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Lucien Gentis <lu...@univ-lorraine.fr> on 2018/09/22 14:40:47 UTC

HTML entities

Bonjour again everybody,

I see that many *.html.fr files have been modified to replace HTML 
entities by there ISO-8859-1 equivalent. (example : manual/bind.html.fr)

I's OK, but yet, when I rebuild the doc after having updated it, all 
ISO-8859-1 non ASCII characters are replaced again by their HTML 
entities equivalent.

Other non-ASCII languages have probably the same problem ?



---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Lucien Gentis <lu...@univ-lorraine.fr>.
Why don't we go UTF-8 ?

I tried it on my working copy, and it seems to work :

In short, I use Linux Ubuntu 18.04 LTS and my java version is 10.0.2, 
and my locale is fr_FR.UTF-8

I edit my XML files in UTF-8 with gvim editor.

First, I had to delete Xbootclasspath option of java command in build.sh 
file from the build tools in order to be able to build the doc with my 
java version.

Then, I replaced all occurence of "ISO-8859-1" by "UTF-8" in following 
files :

manual/style/manual.en.xsl
manual/style/manual.fr.xsl
manual/style/xsl/util/designations.xml
manual/style/xsl/list_for_prettify.xsl
manual/style/xsl/convmap.xsl
manual/style/lang/fr.xml
manual/style/lang/en.xml
manual/style/latex/latex.xsl

Yet, man pages are correctly generated, and there are no more HTML 
entities in html files.

UTF-8 could be used for all langages (some use it already - ja, tr)



Le 25/09/2018 à 10:10, Joe Orton a écrit :
> On Mon, Sep 24, 2018 at 08:45:02PM +0200, Christophe JAILLET wrote:
>> If java 9+, then have a look at https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
>>
>> The issue with man pages is reported (with a possible work-around at the
>> end), as well as the output of entities in the generated files.
> I have Java 8 only (OpenJDK 1.8.0_181-b15).  Yes, the man pages are
> definitely unusable when composed entirely of HTML entities ;)
>
> What is expected in the manual/*.html.XX files, entities or ISO-8859-1
> characters?  AFAICT either should be fine, the ISO-8859-1 characters
> look correct to me everywhere I checked, and the HTML files have
>
> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"
> />
>
> so I don't see why we can't use ISO-8859-1 characters there?
>
> Can we fudge build.sh to fail with Java 9 if that is what is breaking
> everything at the moment, and rely on people with Java 8 to regenerate
> the docs?
>
> Regards, Joe
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>


Re: HTML entities

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 25/09/2018 à 22:08, Christophe JAILLET a écrit :
> Le 25/09/2018 à 22:04, Christophe JAILLET a écrit :
>> Le 25/09/2018 à 10:10, Joe Orton a écrit :
>>> On Mon, Sep 24, 2018 at 08:45:02PM +0200, Christophe JAILLET wrote:
>>>> If java 9+, then have a look at 
>>>> https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
>>>>
>>>> The issue with man pages is reported (with a possible work-around 
>>>> at the
>>>> end), as well as the output of entities in the generated files.
>>> I have Java 8 only (OpenJDK 1.8.0_181-b15).  Yes, the man pages are
>>> definitely unusable when composed entirely of HTML entities ;)
>>>
>>> What is expected in the manual/*.html.XX files, entities or ISO-8859-1
>>> characters?  AFAICT either should be fine, the ISO-8859-1 characters
>>> look correct to me everywhere I checked, and the HTML files have
>> Agreed, any is good to me as far as it is compliant with standards.
>>> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"
>>> />
>>>
>>> so I don't see why we can't use ISO-8859-1 characters there?
>>
>>> Can we fudge build.sh to fail with Java 9 if that is what is breaking
>>> everything at the moment, and rely on people with Java 8 to regenerate
>>> the docs?
>> Un-modified build.sh should break with java 9+; because of the 
>> Xbootclasspath option that has been removed.
>> This should be good enough (IMHO) to avoid incorrect file generation.
>> This prevents to build the doc, but at least it prevent from building 
>> it wrong. :)
>>
>> What I don't understand (and would like to), is why the behavior has 
>> changed between java 8 and 9.
>>
>>> Regards, Joe
>
> https://issues.apache.org/jira/browse/XALANJ-2614
>
> looks related.
>
>
> CJ

I've tried to use SaxonHE9-8-0-14J in place of Xalan.
Tested with Java 9, it generates some errors and the build process 
breaks on some files, but as far as I've seen, html.fr files and man 
pages look fine (i.e. no entities in html and expected ISO-8859-1 
characters in the output, and readable man pages)

Errors and breakages need investigation, but moving from the 
(unmaintained) Xalan to the active Saxon HE (Home Edition, Open Source, 
Mozilla Public License version 2.0) could be an option.


CJ


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 25/09/2018 à 22:04, Christophe JAILLET a écrit :
> Le 25/09/2018 à 10:10, Joe Orton a écrit :
>> On Mon, Sep 24, 2018 at 08:45:02PM +0200, Christophe JAILLET wrote:
>>> If java 9+, then have a look at 
>>> https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
>>>
>>> The issue with man pages is reported (with a possible work-around at 
>>> the
>>> end), as well as the output of entities in the generated files.
>> I have Java 8 only (OpenJDK 1.8.0_181-b15).  Yes, the man pages are
>> definitely unusable when composed entirely of HTML entities ;)
>>
>> What is expected in the manual/*.html.XX files, entities or ISO-8859-1
>> characters?  AFAICT either should be fine, the ISO-8859-1 characters
>> look correct to me everywhere I checked, and the HTML files have
> Agreed, any is good to me as far as it is compliant with standards.
>> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"
>> />
>>
>> so I don't see why we can't use ISO-8859-1 characters there?
>
>> Can we fudge build.sh to fail with Java 9 if that is what is breaking
>> everything at the moment, and rely on people with Java 8 to regenerate
>> the docs?
> Un-modified build.sh should break with java 9+; because of the 
> Xbootclasspath option that has been removed.
> This should be good enough (IMHO) to avoid incorrect file generation.
> This prevents to build the doc, but at least it prevent from building 
> it wrong. :)
>
> What I don't understand (and would like to), is why the behavior has 
> changed between java 8 and 9.
>
>> Regards, Joe

https://issues.apache.org/jira/browse/XALANJ-2614

looks related.


CJ


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 25/09/2018 à 10:10, Joe Orton a écrit :
> On Mon, Sep 24, 2018 at 08:45:02PM +0200, Christophe JAILLET wrote:
>> If java 9+, then have a look at https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
>>
>> The issue with man pages is reported (with a possible work-around at the
>> end), as well as the output of entities in the generated files.
> I have Java 8 only (OpenJDK 1.8.0_181-b15).  Yes, the man pages are
> definitely unusable when composed entirely of HTML entities ;)
>
> What is expected in the manual/*.html.XX files, entities or ISO-8859-1
> characters?  AFAICT either should be fine, the ISO-8859-1 characters
> look correct to me everywhere I checked, and the HTML files have
Agreed, any is good to me as far as it is compliant with standards.
> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"
> />
>
> so I don't see why we can't use ISO-8859-1 characters there?

> Can we fudge build.sh to fail with Java 9 if that is what is breaking
> everything at the moment, and rely on people with Java 8 to regenerate
> the docs?
Un-modified build.sh should break with java 9+; because of the 
Xbootclasspath option that has been removed.
This should be good enough (IMHO) to avoid incorrect file generation.
This prevents to build the doc, but at least it prevent from building it 
wrong. :)

What I don't understand (and would like to), is why the behavior has 
changed between java 8 and 9.

> Regards, Joe



---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Joe Orton <jo...@redhat.com>.
On Mon, Sep 24, 2018 at 08:45:02PM +0200, Christophe JAILLET wrote:
> If java 9+, then have a look at https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
> 
> The issue with man pages is reported (with a possible work-around at the
> end), as well as the output of entities in the generated files.

I have Java 8 only (OpenJDK 1.8.0_181-b15).  Yes, the man pages are 
definitely unusable when composed entirely of HTML entities ;)

What is expected in the manual/*.html.XX files, entities or ISO-8859-1 
characters?  AFAICT either should be fine, the ISO-8859-1 characters 
look correct to me everywhere I checked, and the HTML files have

<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" 
/>

so I don't see why we can't use ISO-8859-1 characters there?

Can we fudge build.sh to fail with Java 9 if that is what is breaking 
everything at the moment, and rely on people with Java 8 to regenerate 
the docs?

Regards, Joe


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Mine is by default
    LANG=fr_FR.UTF-8

changing it to en_US.UTF-8, then
    ./built.sh extraclean
    ./buiilt.sh
still generates invalid man files with java9, and replaces some char by 
their entities in HTML generated files.

With java8, everything looks fine to me.

CJ


Le 24/09/2018 à 21:39, William A Rowe Jr a écrit :
> Could this have any impact;
>
> LANG=en_US.UTF-8
>
> vs. others' settings for the code page?
>
> On Mon, Sep 24, 2018 at 1:45 PM Christophe JAILLET 
> <christophe.jaillet@wanadoo.fr <ma...@wanadoo.fr>> 
> wrote:
>
>     Le 24/09/2018 à 18:33, Joe Orton a écrit :
>     > On Mon, Sep 24, 2018 at 10:43:36AM -0500, William A Rowe Jr wrote:
>     >> Try to svn up your docs/manual/build/ subdir, it is a different
>     checkout.
>     >>
>     >> Maybe we need to revision that directory with a reference rev
>     under docs/
>     >> so we don't actually regress the generated docs when the build
>     toolchain
>     >> is bumped?
>     > I get the same entities->ISO-8859-1 replacement with the latest
>     > docs-build/trunk, is that really the only problem here? Are entities
>     > definitely wrong?  I don't understand the docs toolchain at all.
>     >
>     > Relatedly,
>     http://svn.apache.org/viewvc?view=revision&revision=1841786
>     >
>     > has done something truly horrific to man/* in the other direction.
>
>     If java 9+, then have a look at
>     https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
>
>     The issue with man pages is reported (with a possible work-around
>     at the
>     end), as well as the output of entities in the generated files.
>
>     CJ
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: docs-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>


Re: HTML entities

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
Could this have any impact;

LANG=en_US.UTF-8

vs. others' settings for the code page?

On Mon, Sep 24, 2018 at 1:45 PM Christophe JAILLET <
christophe.jaillet@wanadoo.fr> wrote:

> Le 24/09/2018 à 18:33, Joe Orton a écrit :
> > On Mon, Sep 24, 2018 at 10:43:36AM -0500, William A Rowe Jr wrote:
> >> Try to svn up your docs/manual/build/ subdir, it is a different
> checkout.
> >>
> >> Maybe we need to revision that directory with a reference rev under
> docs/
> >> so we don't actually regress the generated docs when the build toolchain
> >> is bumped?
> > I get the same entities->ISO-8859-1 replacement with the latest
> > docs-build/trunk, is that really the only problem here?  Are entities
> > definitely wrong?  I don't understand the docs toolchain at all.
> >
> > Relatedly, http://svn.apache.org/viewvc?view=revision&revision=1841786
> >
> > has done something truly horrific to man/* in the other direction.
>
> If java 9+, then have a look at
>
> https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E
>
> The issue with man pages is reported (with a possible work-around at the
> end), as well as the output of entities in the generated files.
>
> CJ
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>
>

Re: HTML entities

Posted by Christophe JAILLET <ch...@wanadoo.fr>.
Le 24/09/2018 à 18:33, Joe Orton a écrit :
> On Mon, Sep 24, 2018 at 10:43:36AM -0500, William A Rowe Jr wrote:
>> Try to svn up your docs/manual/build/ subdir, it is a different checkout.
>>
>> Maybe we need to revision that directory with a reference rev under docs/
>> so we don't actually regress the generated docs when the build toolchain
>> is bumped?
> I get the same entities->ISO-8859-1 replacement with the latest
> docs-build/trunk, is that really the only problem here?  Are entities
> definitely wrong?  I don't understand the docs toolchain at all.
>
> Relatedly, http://svn.apache.org/viewvc?view=revision&revision=1841786
>
> has done something truly horrific to man/* in the other direction.

If java 9+, then have a look at 
https://lists.apache.org/thread.html/039a5815481ac297931cd08e759a90388a620eb6ea7aaecfcf97457f@%3Cdocs.httpd.apache.org%3E

The issue with man pages is reported (with a possible work-around at the 
end), as well as the output of entities in the generated files.

CJ


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Tom Fredrik Blenning <bf...@blenning.no>.

On 24/09/2018 18:33, Joe Orton wrote:

> Are entities definitely wrong?

Enities are not definitively wrong, they are just awkward and
unnecessary. They make maintenance much harder.


Re: HTML entities

Posted by Marion & Christophe JAILLET <ch...@wanadoo.fr>.
Hi,

what version of java are you using?

Can you check if the man pages generated are usable?

CJ


Le 24/09/2018 à 18:33, Joe Orton a écrit :
> On Mon, Sep 24, 2018 at 10:43:36AM -0500, William A Rowe Jr wrote:
>> Try to svn up your docs/manual/build/ subdir, it is a different checkout.
>>
>> Maybe we need to revision that directory with a reference rev under docs/
>> so we don't actually regress the generated docs when the build toolchain
>> is bumped?
> I get the same entities->ISO-8859-1 replacement with the latest
> docs-build/trunk, is that really the only problem here?  Are entities
> definitely wrong?  I don't understand the docs toolchain at all.
>
> Relatedly, http://svn.apache.org/viewvc?view=revision&revision=1841786
>
> has done something truly horrific to man/* in the other direction.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by Joe Orton <jo...@redhat.com>.
On Mon, Sep 24, 2018 at 10:43:36AM -0500, William A Rowe Jr wrote:
> Try to svn up your docs/manual/build/ subdir, it is a different checkout.
> 
> Maybe we need to revision that directory with a reference rev under docs/
> so we don't actually regress the generated docs when the build toolchain
> is bumped?

I get the same entities->ISO-8859-1 replacement with the latest 
docs-build/trunk, is that really the only problem here?  Are entities 
definitely wrong?  I don't understand the docs toolchain at all.

Relatedly, http://svn.apache.org/viewvc?view=revision&revision=1841786

has done something truly horrific to man/* in the other direction.


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: HTML entities

Posted by William A Rowe Jr <wr...@rowe-clan.net>.
Try to svn up your docs/manual/build/ subdir, it is a different checkout.

Maybe we need to revision that directory with a reference rev under docs/
so we don't actually regress the generated docs when the build toolchain
is bumped?

On Sat, Sep 22, 2018 at 9:40 AM Lucien Gentis <
lucien.gentis@univ-lorraine.fr> wrote:

> Bonjour again everybody,
>
> I see that many *.html.fr files have been modified to replace HTML
> entities by there ISO-8859-1 equivalent. (example : manual/bind.html.fr)
>
> I's OK, but yet, when I rebuild the doc after having updated it, all
> ISO-8859-1 non ASCII characters are replaced again by their HTML
> entities equivalent.
>
> Other non-ASCII languages have probably the same problem ?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>
>