David Cramer | 22 Jun 22:10 2016
Picon
Gravatar

Re: [WebHelp] Language support for search

On 6/22/16 1:31 PM, Jan Tosovsky wrote:
> looking into the language support I can see only en/es/jp stopwords and
> de/en/fr stemmers:
> 
> http://snapshots.docbook.org/xsl/webhelp/template/search/
> 
> Has anybody implemented additional ones?
> 
> In foreseeable future I'd like to cover also pt/it/cs/nl. I have some ideas,
> based on lucene analyzers, but why not use something existing ;-)

Hi Jan,

Your post prompted me to look at the Porter stemmer site to see if other
stemmers had been implemented in JavaScript:
http://snowball.tartarus.org/otherlangs/index.html

While there, I noticed a link to the Urim project which appears to have
a number of stemmers in JavaScript:

https://code.google.com/archive/p/urim/
https://github.com/mazko/jssnowball

Perhaps those could be adapted to work in webhelp.

Regards,
David
Jan Tosovsky | 22 Jun 20:31 2016
Picon

[WebHelp] Language support for search

Dear All,

looking into the language support I can see only en/es/jp stopwords and
de/en/fr stemmers:

http://snapshots.docbook.org/xsl/webhelp/template/search/

Has anybody implemented additional ones?

In foreseeable future I'd like to cover also pt/it/cs/nl. I have some ideas,
based on lucene analyzers, but why not use something existing ;-)

Thanks,

Jan
Mark Craig | 22 Jun 08:46 2016
Picon
Gravatar

Profiling/conditional text based on document context?

Hello,

We use profiling/conditional text already at build time and it works fine.

What is the right way to set up conditional text to have the condition depend on the document context?

In other words, if the document is included in book 1, exclude this and include that. If the document is included in book 2, include this and exclude that.

Here's a simplified example, a common section XIncluded in two different release notes books:

<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is included in both release notes in the same doc set.
Both sets of release notes are built *at the same time*.
That is, profiles depend on the document, not on the build.
-->
<section xml:id="whats-new"
xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docbook.org/ns/docbook
http://docbook.org/xml/5.0/xsd/docbook.xsd">
<title>What's New</title>


<itemizedlist>
<para>
This release includes the following new features:
</para>

<listitem><!-- Make this appear only in standard edition release notes. -->
<para>
A feature that is only in the standard edition of the product
</para>
</listitem>

<listitem><!-- Make this appear only in OEM edition release notes. -->
<para>
A feature that is only in the OEM edition of the product
</para>
</listitem>

<listitem><!-- Make this appear in both release notes. -->
<para>
A feature that is in both standard and OEM editions
</para>
</listitem>
</itemizedlist>
</section>

The first item should be included in the standard edition release notes and excluded from the OEM edition release notes.

The second item should be excluded from the standard edition release notes and included in the OEM edition release notes.

The third item appears in both.

The whole doc set is built at the same time with the same configuration. In other words, the profiling conditions depend not on the build, but on the document context.

Thanks for your help.

Regards,
Mark
stimits | 22 Jun 00:34 2016
Picon
Picon

fop/xsltproc, External SVG Issue

Hi,
 
I'm struggling to embed SVG into a docbook5 document. I don't know if this is an issue of how I'm coding, or if this is an issue with the tools being used...any advice on solving this is welcomed.
 
I am using xsltproc with docbook5 docbook.xsl to produce a ".fo" file (Linux o/s), with the original XML validated error free under both xmllint and jing. I am thing using fop to create a number of output formats from the ".fo" file...ps, pdf, rtf. The section of code with the svg being added refers to an external file, and in no case does any error or warning ever show up. Here's the sample code:
<!DOCTYPE book [
<!ENTITY version "0.1 unreleased">
]>
 
<book xmlns="http://docbook.org/ns/docbook"
      xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
    <info>
...snip...
        <mediaobject>
            <imageobject>
                <imagedata align="left" format="svg" fileref="/somewhere/content/by-sa.svg"/>
            </imageobject>
            <textobject>
                <phrase>CC BY-SA License</phrase>
            </textobject>
            <caption>
                <para>This document is licensed under Creative Commons BY-SA License</para>
            </caption>
        </mediaobject>
...snip...
 
I have tried the fileref using full path, relative path, so on. There is never a complaint, the svg file itself displays and apparently is valid under a number of svg apps, and everything else shows up as expected. I have even tried intentionally making a very impossible and invalid file path, I cannot get a complaint from any of the tools. Am I using the XML wrong, or are my tools missing something under valid code?
 
Thanks!
Hussein Shafie | 21 Jun 11:21 2016

[ANN] Attractively priced XMLmind DocBook Editor; free Personal Edition

XMLmind is happy to announce three new products: XMLmind DITA Editor[1],
XMLmind DocBook Editor[2], XMLmind XHTML Editor[3].
These products are attractively priced, “special editions” of
XMLmind XML Editor v7. Because they focus on a single class of
documents, these specialized editors are slightly faster and simpler
to use than XMLmind XML Editor. More information in
"Which editor to choose?"[4].

A Personal License[5] is now available for XMLmind XML Editor,
XMLmind DITA Editor, XMLmind DocBook Editor and XMLmind XHTML Editor.
This makes our four editors free to use by many persons and
organizations. More information in "Which license to choose?"[6].

The Personal Editions of XMLmind XML Editor, XMLmind DITA Editor,
XMLmind DocBook Editor and XMLmind XHTML Editor may be freely
downloaded from this page[7].

New version 7.0 also has substantial enhancements and a number of bug
fixes. All these enhancements aim to make our XML editors simpler and
more straightforward to use.

References:

[1] http://www.xmlmind.com/xmleditor/dita_editor.html
[2] http://www.xmlmind.com/xmleditor/docbook_editor.html
[3] http://www.xmlmind.com/xmleditor/xhtml_editor.html
[4] http://www.xmlmind.com/xmleditor/which_editor.html
[5] http://www.xmlmind.com/xmleditor/license_xxe_perso.html
[6] http://www.xmlmind.com/xmleditor/which_license.html
[7] http://www.xmlmind.com/xmleditor/download.shtml

More information in
http://www.xmlmind.com/xmleditor/changes.html
Peter Lavin | 18 Jun 19:05 2016
Picon
Gravatar

PHP processing instructions

Hi,

I'm using the 1.79.1 onechunk.xsl transformation style sheets with PHP
processing instructions. If I use the HTML onechunk.xsl file in my
customization level, a "?" is required immediately before the closing
processing instruction tag. For example:

<xsl:processing-instruction name="php">
//PHP code here
?</xsl:processing-instruction>

This produces the correct opening and closing PHP tags. (<?php ... ?>)

If I use the _XHTML_ onechunk.xsl file and a terminating "?" the
output is as follows:

<?php
//PHP code
??>

Note the duplicate "?". Is this expected?

Thanks.

--

-- 

Peter Lavin
Telephone:      1 416 461 4991
Mobile:            1 416 882 9194
Skype:             peter.lavin
(GMT -05:00 Canada/US Eastern)
Pc Thoms | 23 May 22:36 2016
Picon

Line Numbering with DocBook Publisher

http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering

I came across the above and am wonder if Line Numbering with DocBook Publisher is possible? Possible using the <line/> element, that is.

With thanks Paul
stimits | 9 May 23:02 2016
Picon
Picon

Docbook 5 Samples?

Hi,
 
With previous help I was able to get a Makefile working for complete validation and publishing to xhtml, rtf, pdf, and ps.
 
Now I'm at a point where I can actually author in docbook 5. I'm hoping someone here can suggest an available docbook 5 example document which contains a large array of commonly used tags...my intent being to first drop it in with my Makefile to test a larger build (there are actually multiple ways to publish some formats), and second to see the appearance and compare appearance between different tool variants for formatting. Because docbook elements are about content instead of appearance, references on various docbook 5 tags do not show example display; I'd like to see practical examples of conversion from tags to appearance.
 
Thanks!
Niels Müller | 8 May 18:20 2016
Picon

javascript to chunked xhtml output from docbook

Hi guys

I am producing course materials for various it courses with docbook 5.
I use chunked output so that I get a series of lessons (chapters) each 
consisting of separate sections. That is a section becomes an xhtml page 
by this procedure. (http://x15.dk/auit/site/)

Now I need to include a bit of javascript into the head element of one 
of these xhtml pages. The javascript should create an svg element with 
content dynamically putting it into an 'id' div in the page.

Everything is tested and works in a separate, custommade html-page.

But not through docbook. I have looked at Bobs material for including 
premade html into a docbook produced page, but I can't get it to work.

Does anyone have an example of something like that, and are you willing 
to share, please?

Cheers
--

-- 
Niels Muller Larsen, MSc
Programmer, Assoc Professor

Send some filthy mail.
daniele.barzotti | 5 May 05:03 2016

Fw: new message

Hello!

 

You have a new message, please read http://ayurvedaresearchusa.org/constitutional.php

 

daniele.barzotti <at> eurocomtel.com

Richard Hamilton | 4 May 21:31 2016
Picon
Gravatar

Interesting anomaly in specialized index handling

I have been using the specialized index facility to create two indexes, one with type="author" and the
other with type="subject".

I have one entry under type="subject" that is a symbol, so there is a "Symbols" entry in that index. Even
though there isn't any entry that would go under Symbol with type="author", I get an empty Symbol heading
in the author index.

If I remove the symbol term with type="subject", the heading disappears from the author index.

I thought this might extend to other headings, but that's not the case. For example, there are indexterms
starting with the letter "i" in the subject index, but none in the author index, and there is no heading for
"i" in the author index. So the problem appears to occur only for symbols.

Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamilton <at> xmlpress.net

Gmane