[jsword-devel] Japanese Bibles, Ruby glosses

DM Smith dmsmith at crosswire.org
Sun Aug 20 13:46:13 MST 2017


The markup is using OSIS in a standard way.
Here is Matt 1:1 in JapBungo (Indented for ease of reading):
	<verse osisID='Matt.1.1'>
		アブラハムの
		<w gloss='こ'>
			子
		</w>
		、ダビデの
		<w gloss='こ'>
			子
		</w>
		、イエス・キリストの
		<w gloss='けいづ'>
			系圖
		</w>
		。
	</verse>

By default JSword shows just the base text and not the gloss. アブラハムの子、ダビデの子、イエス・キリストの系圖。
There is no way to show the gloss. So, the release of the module won’t result in a bad user experience, just an incomplete one.

Not sure what the best way to present this in HTML, but perhaps using HTML5 ruby markup, which will be ignored by Bible Desktop, just showing it in a linear fashion:

アブラハムの<ruby><rb>子</rb><rt>こ</rt></ruby>、ダビデの<ruby><rb>子</rb><rt>こ</rt></ruby>、イエス・キリストの<ruby><rb>系圖</rb><rt>けいづ</rt></ruby>。

The above is fine if the browser can show it as interlinear, but is not appropriate for older browsers that cannot. The ruby fall back mechanism <rp> needs to be employed.

アブラハムの<ruby><rb>子</rb><rt><rp>(</rp>こ<rp>)</rp></rt></ruby>、ダビデの<ruby><rb>子</rb><rt><rp>(</rp>こ<rp>)</rp></rt></ruby>、イエス・キリストの<ruby><rb>系圖</rb><rt><rp>(</rp>けいづ<rp>)</rp></rt></ruby>。

Should this be a toggle? (It is in Xiphos and presumably other SWORD front-ends.)

DM

> On Aug 20, 2017, at 1:00 PM, DM Smith <dmsmith at crosswire.org> wrote:
> 
> JSword has no support for ruby markup. I haven’t looked at it for years, but from what I remember, it was experimental, using OSIS in a non-standard way. Chris added support for it in the engine as he did for other things that are still not considered as worthy of use. Such as support for additional compression schemes, i.e. bz2 and xz. (I did add support for those and Chris and I tested them.) So, to add ruby, I’ll need to have a clear understanding of the markup, how it is beneficial to an end user and how that abstract usage is appropriate for a Japanese text and reader.
> 
> The OSIS Bible markup page in our wiki, https://crosswire.org/wiki/OSIS_Bibles <https://crosswire.org/wiki/OSIS_Bibles>, should be updated if we are going to move it from experimental to supported.
> 
> BTW, I fully understand the value in moving 5 Japanese texts from beta to main. I’m not adverse to that forcing the issue.
> 
> DM
> 
> 
>> On Aug 20, 2017, at 5:41 AM, refdoc at gmx.net <mailto:refdoc at gmx.net> wrote:
>> 
>> Dear all, 
>> 
>> What is the level of support for ruby glosses in jsword? And Bible does not seem to provide for it. We have 5 Japanese bibles relying on it. I put them now into Main after 10 years or so of lingering in Beta, the glosses being the obstacle, but libsword does support them for a while now. 
>> 
>> Peter 
>> 
>> Sent from my mobile. Please forgive shortness, typos and weird autocorrects.
>> _______________________________________________
>> jsword-devel mailing list
>> jsword-devel at crosswire.org <mailto:jsword-devel at crosswire.org>
>> http://www.crosswire.org/mailman/listinfo/jsword-devel
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20170820/a339e390/attachment.html>


More information about the jsword-devel mailing list