Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2014, 04:00 PM   #1
kenkyosan
Junior Member
kenkyosan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2014
Device: Mobipocket/Kindle
Problem with syntax <idx:orth infl=""> and hiragana

Hello,

As the title say, I have an insoluble problem with the syntax :
Code:
<idx:orth infl="">
I try to build a Japanese-French dictionary and I want to hide some labels (inflections) in the index with the flag 1, but it seems that some characters (not all), like hiragana に, た, ま, etc., don't work. The other syntax
Code:
<idx:infl><idx:iform value=""/></idx:infl>
isn't compatible with hiragana (I think), so I don't know what to do.

Anybody have an idea?
Thanks in advance.
kenkyosan is offline   Reply With Quote
Old 08-19-2014, 03:24 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by kenkyosan View Post
The other syntax
Code:
<idx:infl><idx:iform value=""/></idx:infl>
isn't compatible with hiragana (I think), so I don't know what to do.
This syntax is compatible. It works with Mobipocket Creator and the current Kindlegen version. For example, you could use the following syntax:

Code:
<idx:entry name="japanese" scriptable="yes">
   <idx:orth>猫<idx:infl><idx:iform value="貓"/><idx:iform value="ねこ"/><idx:iform value="ネコ"/></idx:infl></idx:orth><br/>
   chat (m)
</idx:entry>
I've sucessfully tested it with a mini dictionary and a Japanese test file that only contained the characters 猫 and 車 (and their Kana equivalents).

The tricky part is selecting multiple consecutive characters. I wasn't able to do this with my PW2 even when the GUI was changed to Japanese.
For testing purposes, I inserted regular spaces between Kanji and Kana characters and when I selected one of the Kana equivalents the correct headword was displayed.

For more information on the dictionary syntax also see the Kindle Publishing Guidelines, which describes the dictionary syntax in detail.

Just out of curiosity, do Japanese ebooks contain invisible delimiters (ZWNJ etc.) between lexical units? If so which ones?
Attached Files
File Type: zip ja_dict.zip (6.9 KB, 306 views)
Doitsu is offline   Reply With Quote
Old 08-19-2014, 11:33 AM   #3
kenkyosan
Junior Member
kenkyosan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2014
Device: Mobipocket/Kindle
Hello,

Thanks for the response. Maybe it works on Kindle devices, but for me, converted with MC 4.8 or Kindlegen 2.9, it doesn't work on my Mobipocket reader 6.2 (PC or WM) even with regular spaces : no links are available from an other ebook (except of course for the entries 猫 and 車) and the inflexions are not accessible from index. The only syntax which works well is
Code:
<idx:orth value"">
It would be perfect if I canned to hide (for convenient reason only) the values I don't want to display, but...

To my knowledge, there is no delimiters in japanese ebooks, apart from hyperlinks and sometimes for to make easier the researches (like for find 待つ in 待っていました).

Thanks again.

P.S. : I you are interested, I send to you a sample of the dictionary.
Attached Files
File Type: zip DJF.zip (196.1 KB, 278 views)
kenkyosan is offline   Reply With Quote
Old 08-19-2014, 01:51 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by kenkyosan View Post
Thanks for the response. Maybe it works on Kindle devices, but for me, converted with MC 4.8 or Kindlegen 2.9, it doesn't work on my Mobipocket reader 6.2 (PC or WM) ...
Apparently Mobipocket Reader doesn't support Kana inflections. However, you can simply add them as hidden idx:orth values:

Code:
<idx:entry>
   <idx:orth>猫</idx:orth>
   <idx:orth value="貓"/>
   <idx:orth value="ねこ"/>
   <idx:orth value="ネコ"/><br />
   chat (m)
</idx:entry>
Attached Thumbnails
Click image for larger version

Name:	screen.png
Views:	310
Size:	18.2 KB
ID:	127069  
Doitsu is offline   Reply With Quote
Old 08-19-2014, 04:22 PM   #5
kenkyosan
Junior Member
kenkyosan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2014
Device: Mobipocket/Kindle
Yes, it's what I'm doing. I just wanted to hide some labels
Code:
idx:orth value=""
in the index, but it seems whether it is impossible. It's no big deal. Thanks anyway.
kenkyosan is offline   Reply With Quote
Reply

Tags
hiragana, idx:orth, infl, japanese, kindlegen, mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use 'format' in <idx:orth> tags for dictionaries? totsubo Kindle Formats 12 10-30-2013 03:28 AM
Problem "installing" "Kindle library extractor" dhdurgee Kindle Developer's Corner 7 11-24-2012 07:09 PM
tab2opf.py <idx:key key="xxx"> Doitsu Kindle Formats 0 01-11-2011 11:57 AM
"A Problem Occurred" on the "Shop" page. swallman Nook Color & Nook Tablet 1 12-25-2010 12:34 PM
Need Help With "Regular Expression Syntax" dkritso109 Calibre 42 10-05-2010 09:03 AM


All times are GMT -4. The time now is 12:39 PM.


MobileRead.com is a privately owned, operated and funded community.