Joined: Jun 2007
Posts: 1,023
Thanks:
12
I converted iSoron's/pm215's lovely python script into C#. So far I've only tested the cases in the aozora link:
武州|青梅《おうめ》の宿
耳まで火照《ほて》って
すると稍々《やや》度を失った
兄きのような Fanatiker《ファナチイケル》 とは
“Kosinski《コジンスキイ》 soll《ゾル》 leben《レエベン》 !”
そんな|お伽話《フェヤリー・ストーリース》は、
霧の|ロンドン警視庁《スコットランドヤード》…
いいか|釜右ヱ門《かまえもん》。
彼は| Au revoir《さらば》 と、
It successfully ruby tagged each case:
武州<ruby><rb>青梅</rb><rt>おうめ</rt></ruby>の宿
耳まで<ruby><rb>火照</rb><rt>ほて</rt></ruby>って
すると<ruby><rb>稍々</rb><rt>やや</rt></ruby>度を失った
兄きのような<ruby><rb> Fanatiker</rb><rt>ファナチイケル</rt></ruby> とは<ruby><rb>
“Kosinski</rb><rt>コジンスキイ</rt></ruby><ruby><rb> soll</rb><rt>ゾル</rt></ruby><ruby><rb> leben</rb><rt>レエベン</rt></ruby> !”
そんな<ruby><rb>お伽話</rb><rt>フェヤリー・ストーリース</rt></ruby>は、
霧の<ruby><rb>ロンドン警視庁</rb><rt>スコットランドヤード</rt></ruby>…
いいか<ruby><rb>釜右ヱ門</rb><rt>かまえもん</rt></ruby>。
彼は<ruby><rb> Au revoir</rb><rt>さらば</rt></ruby> と、
The "<ruby><rb>" after the "とは" in the 4th case was the only thing that seemed slightly off. It seems to have skipped past the line break. I might want to fix that.
I'm going to move out the release a day or two so that I can have more time to test on actual novels. I also want to look into nest0r's concerns in the previous post.
BTW, after a couple of minor modifications, it seems to run well on Linux Mint too.
Edited: 2011-02-09, 11:21 pm
Joined: Oct 2009
Posts: 278
Thanks:
0
I converted a few of the more difficult books I've been reading for greater ease of dictionary usage.
BTW do you have any plans to add support for images? A lot of books use tags like this:[#(img/imagename.jpg)]
Edited: 2011-02-09, 11:59 pm
Joined: Nov 2009
Posts: 174
Thanks:
0
Hey guys,
sorry for being so dense but what exactly do you mean when you say "specially formatted HTML files." Would you mind elaborating a little more on the benefits of a JNovel Formatter for the n00bs out there?
Thanks
Joined: Jun 2007
Posts: 1,023
Thanks:
12
New set of test cases:
武州|青梅《おうめ》の宿
耳まで火照《ほて》って
すると稍々《やや》度を失った
兄きのような Fanatiker《ファナチイケル》 とは
“Kosinski《コジンスキイ》 soll《ゾル》 leben《レエベン》 !”
そんな|お伽話《フェヤリー・ストーリース》は、
霧の|ロンドン警視庁《スコットランドヤード》…
いいか|釜右ヱ門《かまえもん》。
彼は| Au revoir《さらば》 と、
胡麻塩おやじ[#「おやじ」に傍点]
胡麻塩おやじ[#「おやじ」に傍点]
胡麻塩おやじ[#「おやじ」に白ゴマ傍点]
胡麻塩おやじ[#「おやじ」に丸傍点]
胡麻塩おやじ[#「おやじ」に白丸傍点]
胡麻塩おやじ[#「おやじ」に黒三角傍点]
胡麻塩おやじ[#「おやじ」に白三角傍点]
胡麻塩おやじ[#「おやじ」に二重丸傍点]
胡麻塩おやじ[#「おやじ」に蛇の目傍点]
[#(img/imagename.jpg)]
[#(img/imagename.png)]
[#(img/imagename.bmp)]
[#(img/imagename.gif)]
New set of results:
武州<ruby><rb>青梅</rb><rp>《</rp><rt>おうめ</rt><rp>》</rp></ruby>の宿
耳まで<ruby><rb>火照</rb><rp>《</rp><rt>ほて</rt><rp>》</rp></ruby>って
すると<ruby><rb>稍々</rb><rp>《</rp><rt>やや</rt><rp>》</rp></ruby>度を失った
兄きのような <ruby><rb>Fanatiker</rb><rp>《</rp><rt>ファナチイケル</rt><rp>》</rp></ruby> とは
“<ruby><rb>Kosinski</rb><rp>《</rp><rt>コジンスキイ</rt><rp>》</rp></ruby> <ruby><rb>soll</rb><rp>《</rp><rt>ゾル</rt><rp>》</rp></ruby> <ruby><rb>leben</rb><rp>《</rp><rt>レエベン</rt><rp>》</rp></ruby> !”
そんな<ruby><rb>お伽話</rb><rp>《</rp><rt>フェヤリー・ストーリース</rt><rp>》</rp></ruby>は、
霧の<ruby><rb>ロンドン警視庁</rb><rp>《</rp><rt>スコットランドヤード</rt><rp>》</rp></ruby>…
いいか<ruby><rb>釜右ヱ門</rb><rp>《</rp><rt>かまえもん</rt><rp>》</rp></ruby>。
彼は<ruby><rb> Au revoir</rb><rp>《</rp><rt>さらば</rt><rp>》</rp></ruby> と、
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>﹅﹅﹅</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>﹅﹅﹅</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>﹆﹆﹆</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>●●●</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>○○○</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>▲▲▲</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>△△△</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>◎◎◎</rt><rp>》</rp></ruby>
胡麻塩<ruby><rb>おやじ</rb><rp>《</rp><rt>◉◉◉</rt><rp>》</rp></ruby>
<img src="img/imagename.jpg" />
<img src="img/imagename.png" />
<img src="img/imagename.bmp" />
<img src="img/imagename.gif" />
---
Getting closer! As you can see I fixed the issues with the original test cases and I added support for emphasis markers and images.
With all of these ruby tags floating about, it is more critical that I separate pages in a cleaner fashion. That is, not in the middle of a sentence. That's next.
Also, can somebody please paste the error message that occurs when selecting a non-TT font? I seem unable to reproduce it on my end.
@dusmar84
Now that you've pointed it out, I don't really like that wording. Maybe I'll replace "specially" with "nicely" (or something like that - description suggestions are welcome).
Edited: 2011-02-10, 11:25 pm
Joined: Jun 2006
Posts: 736
Thanks:
0
cb4960, have I told you how awesome you are? No, really, monuments shall be erected in your honor.
(Don't let it get to your head, for all our sakes)
Edited: 2011-02-11, 1:55 am
Joined: Oct 2007
Posts: 4,582
Thanks:
0
Have you seen the Readability plugin? I kind of like how it lets you adjust the margins. (Though the plugin itself takes some work if using with JNF-created files, doesn't quite look right because of font/paragraph changes, ruby, etc.)
Edited: 2011-02-11, 4:31 pm
Joined: Oct 2007
Posts: 4,582
Thanks:
0
Amazing! Works very nice. I just tried it with images which displayed as desired (once I stuck them in the right folder, of course). Thanks for your effort as always.
I did notice that when I tried certain Japanese fonts (えり字, or stuff from that wazu site, for example), when I selected them in the drop-down, the font remained unchanged as MS PMincho. No problem selecting non-TrueType fonts, though. And of course if I just edit the .html file I can replace MS PMincho with ‘Eriji’, for example. Although that font's not as good as I thought, now that I tried it with a novel. Hard to read and doesn't have all the necessary kanji, which results in blank spaces (sometimes blank spaces with furigana, haha).
Also: This is entirely off-topic, but since I mentioned Readability, I should mention that I just noticed it has an autoscroll function (you trigger it and it slowly scrolls, and you can increase speed, like a vertical slideshow of sorts). Kind of neat. I bet people could use that to like, force themselves to read at a certain pace or something. ;p
Edit: Oh I'm dense. Just noticed you already have an option to adjust the margins. Stop with the time travel already!
Edited: 2011-02-12, 3:57 am
Joined: Jun 2007
Posts: 1,023
Thanks:
12
@hereticalrants,
It's the thought that counts.
Also, I might add some sort of option to limit the number of consecutive newlines.
@ Daichi,
Thanks for the suggestions.