Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2016, 05:33 PM   #76
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
@brolny
I won't be doing anything with fonts, alas .
For the word column width problem a simple resizing of the SpellcheckEditor window should suffice. For the problem with the width of "Change Selected Word To" box I will try to implement ToolTip (when you place your mouse on the object a text in a box will appear): it's not perfect but will help some, I think - see picture.
I would like to have a sample of your book, just a page with this long word would be enough. What language is this?
Attached Thumbnails
Click image for larger version

Name:	SCE_next05.jpg
Views:	187
Size:	65.9 KB
ID:	150819  
varlog is offline   Reply With Quote
Old 08-10-2016, 07:55 PM   #77
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,638
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by varlog View Post
@brolny
What language is this?
Dictionary name is hy-my - so Armenian perhaps
BetterRed is offline   Reply With Quote
Advert
Old 08-11-2016, 03:16 AM   #78
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Quote:
Originally Posted by BetterRed View Post
Dictionary name is hy-my - so Armenian perhaps
Exactly, Armenian (EA, reformed orthography).
There are AFF and DIC files in the attachment - if you want to try it within new spell-checking system which varlog coding now.
(Or you can download them for free from http://www.hyspell.com/. But then you have to change AFF file because some Armenians punctuation marks [!?'] => [՜՞'՝] inserted not at the end of a sentence, but inside the word after the stressed vowel (and inside one diagraph ) of a syllable).
Unfortunately, HYPH file doesn't exist at all, because hyphenation in Armenian is very complicated matter in case of hidden syllables, which became unhidden (open or closed) on the hyphenation.
Attached Files
File Type: zip hy_hunspell_dict.zip (862.4 KB, 136 views)

Last edited by brolny; 08-11-2016 at 05:10 AM.
brolny is offline   Reply With Quote
Old 08-11-2016, 03:39 AM   #79
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Quote:
Originally Posted by varlog View Post
@brolny
I would like to have a sample of your book, just a page with this long word would be enough. What language is this?
The file is at the very beginning, just some prep. works.
Attached Files
File Type: epub ur3.epub (353.1 KB, 1162 views)
brolny is offline   Reply With Quote
Old 08-11-2016, 04:28 AM   #80
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Quote:
Originally Posted by varlog View Post
@brolny
I won't be doing anything with fonts, alas .
For the word column width problem a simple resizing of the SpellcheckEditor window should suffice.
Resizing - resize the list of words only, not the field of suggested word.
If not, then not, very sorry.

PS
According to this (http://www.wolframalpha.com/input/?i...sh+word+length) - the average length of English word is 5, Armenian is 16, Russian is 15, German and Spanish is 14.

But I think that it's wrong, so I make a 5-minutes calculation on words in Armenian Bible. Average word's length is >10, but without auxiliary verbs and pronouns (article is the part of a word, and written together with the word) the length is ~13 chars. So, it's seems to be true...
Three times more! Unbelievable.

But main noise/disadvantage not the length itself, but the letters - some letters combinations very very hard now to recognize in suсh small size...
So it's complicated - width of editable field + length of words + letters combinations + font style...

PPS
Intresting to see terrible Korean words in this case
Attached Thumbnails
Click image for larger version

Name:	average.png
Views:	182
Size:	62.1 KB
ID:	150824  

Last edited by brolny; 08-11-2016 at 05:05 AM.
brolny is offline   Reply With Quote
Advert
Old 08-11-2016, 05:29 AM   #81
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Quote:
Originally Posted by varlog View Post
@brolny
I would like to have a sample of your book, just a page with this long word would be enough. What language is this?
If you prefer English...

Time expressions => Ժամանակային արտահայտություններ
Attached Files
File Type: epub Sakayan.epub (40.2 KB, 160 views)
brolny is offline   Reply With Quote
Old 08-11-2016, 10:27 AM   #82
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Quote:
Originally Posted by brolny View Post
Intresting to see terrible Korean words in this case
Just some Koread words.
Attached Files
File Type: epub korean.epub (21.0 KB, 154 views)
brolny is offline   Reply With Quote
Old 08-12-2016, 05:07 PM   #83
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
@brolny
Thank you for all the books.
You have a lot of work ahead of you with them: the languages are not properly tagged - see picture (ur3.epub).
And then you use "ru-RU" as "dc:language" and just "ru" in overriding html xml:lang attribute.
That reminds me: I wanted to do something general with "ln" versus "ln-LN" since (almost) the very beginning - but I get heavily distracted with other issues on this project...
Attached Thumbnails
Click image for larger version

Name:	SCE_next06.jpg
Views:	182
Size:	164.2 KB
ID:	150902  
varlog is offline   Reply With Quote
Old 08-18-2016, 06:56 PM   #84
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
In The Source: The Texas Chain Saw Massacre 3

... the deadline is almost there and I'm not getting my ideas working ... as usual...

After the deadline (23:30 21.08.2016) I will be one month totally offline.

The things I've touched are mostly working. At the moment I'm trying to implement language map: get the language according cursor position in text. It is not the ultimate solution: imagine now you start to write in Code View something like
Code:
<span xml:lang="new one">
and the highlighter is highlighting as the QTextEditor, every other key input, tells it to... and you correct your text... massacre...
Serial parsing is not something I do for pleasure...
varlog is offline   Reply With Quote
Old 08-20-2016, 07:43 PM   #85
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Out of The Source: Let's sing another song, boys, this one has grown old and bitter..

Leonard... I am just a sucker for a awesome phases, take it with ... I liked his "Famous Blue Raincoat"... He wrote two books, too. "Beautiful Losers" was for me just "Famous Blue Raincoat" spread over some two hundred pages...

No no no, it is not the end of Sigil multi language spell check as envisioned by me (I hope). The end of it you will see (or not ) in Sigil.

But yes, it is the end of this blog. The question if my way is right way to mess with internals of Sigil will be answered elsewhere - in Sigil.

Thank you all for attention. There are some twenty of you who followed it quite closely, which is much by my standards. I hope you have enjoyed it as much as I did.
Special thanks goes an Hitch: your out of nowhere post made my day.

One thing I want to say:
I'm spitting my soul out there for more then two months and no troll chimed in? Hey trolls, don't you read books...?
Hey, mobileread, do you have some secret anti-troll weapon?

I guess trolls have no much use for books and such...

Here is the code, branch MLspellchecker.

It is far from finished. I have disabled Settings and haven't touched Preferences. I have not followed all the clues. There is rubbish there and ideas not followed to the end left ...
But the deadline is there, so I have to deliver something, which [TAKEN item="from my real profession"] will be the basis for further negotiations, if any.[/TAKEN]
The main functionality seems to be working on my system. The question is: does it compile on others? What happens on Mac, with its multi windowed Sigil? The memory/speed footprint on other systems? Is my code up to standards (it is preliminary!)?

I hope some of you will try it. Try context menu in SpellcheckEditor. Try double click on "Code" or "Alias" items in "Loaded Dictionaries" area.

Feel free to say something about it, in time I will presumably respond.

Latest Multilanguage epub attached.

@Kevin: I can make pull request if you want to (in next ten hours), but I think it is too early. I think we should keep issues of multi language spell check separate from mainline for now.

And now [AT LEAST ONE MONTH OF NONEXISTENCE]...

Will not be continued.

regards
Attached Files
File Type: epub Multilanguage01.epub (8.8 KB, 138 views)

Last edited by varlog; 08-20-2016 at 07:48 PM.
varlog is offline   Reply With Quote
Old 08-21-2016, 09:28 AM   #86
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,498
Karma: 5703586
Join Date: Nov 2009
Device: many
Hi varlog,
Thank you. I will take what you have and integrate it into a new branch on master. That way it can be more fully merged in once the pieces are all in place. So if you still have time, please create a pull request and I will merge it into a branch.

Take care,
KevinH
KevinH is offline   Reply With Quote
Old 08-21-2016, 01:44 PM   #87
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,498
Karma: 5703586
Join Date: Nov 2009
Device: many
For anyone interested in playing with varlog's multi language spell check code, I have created a "mlspell" branch on Github from master and merged in varlogs pull request.
KevinH is offline   Reply With Quote
Old 12-12-2016, 06:18 PM   #88
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
To Whom it Concerns

The software, which is not worked on, dies. So the piece of software is never finished - till it dies.
That said I would like to inform you that I've actually done it. There is a piece of software which brings multi language spell check to Sigil, with, as far as I can see, all previous functionality and some more. Not perfect because perfection comes with experience.
Will Sigil have it? I think not. Not in this form.
Let us be honest. Almost nobody really needs it: seems to be my specialty in Sigil features .
The devs have much more important thighs to do: implementing epub 3 and some more.
And I'm in a middle of an personal circumstances that will make my further work on Sigil impossible - I think... at the moment... Christmas coming...
If anybody really needs it - it is relatively easy to find. With every passing day it dies of course...

The good news: last time I've checked the Calibre Editor parsed Multilanguage01.epub correctly: it was not the case when I've first checked... haven't said anything, because I knew Kovid will get it right as soon as he noticed .
varlog is offline   Reply With Quote
Old 12-12-2016, 06:52 PM   #89
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,498
Karma: 5703586
Join Date: Nov 2009
Device: many
Hi Varlog,
As I told you previously, I won't have time to really look into this until my holiday break over Christmas. That does not mean I plan to let it die, nor does it mean I don't appreciate the effort. Your changes are large and invasive so it will take time for me to understand exactly what you have done and why. Once I am happy, it will get pulled into the main Sigil tree. Please be patient.

Thanks,

KevinH
KevinH is offline   Reply With Quote
Old 12-12-2016, 07:00 PM   #90
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,498
Karma: 5703586
Join Date: Nov 2009
Device: many
PS, I merged your latest pull request into mlspell branch of Sigil so that others can build that branch to play around with it.

Over the Christmas break, I will do my best to review and modify your changes to fit with Sigil so that they can be merged back into master.

Thanks,

KevinH
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another new blog Nate the great Lounge 0 05-01-2011 04:32 PM
new to blog pemmike Introduce Yourself 6 01-03-2011 05:39 AM
Blog AlexRupflin Deutsches Forum 10 12-24-2008 04:05 AM
My first Blog....ever AJ Starr Introduce Yourself 7 05-23-2008 02:55 AM


All times are GMT -4. The time now is 02:00 PM.


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