Jump to content
You must now use your email address to sign in [click for more info] ×

MikaV

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I realized that there is a block of hyphenation patterns in a wrong place in the hyph_fi_FI.dic file. Patterns should be in alphabetical order. Thus this does not affect to the hyphenation process. I will enclose some pictures clarifying how to create style for body text paragraph in Finnish language. In Text styles palette use right mouse button to create a new style based on Body This opens a dialog "Create Paragraph Style" Give style a name eg. Leipä (Body style in Finnish) Choose Language and set spelling and hyphenation to Finnish Hyphenation is actually needed with justified paragraphs so let's choose one in the Alignment dropdown Lastly turn hyphenation on and limit consecutive hyphens to 2 or 3 Save style py pressing OK. Now you can type or place text into text frame and set it's style to Leipä. Then you can create other body text styles based on Leipä style when needed.
  2. As Walt said you need auto-hyphenation to be enabled in the Parahgraph settings. A good practise is to create appropriate Text Styles for body text paragraps to be hyphenated. In dictionary folder there must be the following files: Hyphenation needs the last file in the picture to be present in the folder. First lines of file shoud look like this: ISO8859-1 c1ha char1se 1ba 1be 1bi 1bo 1bu When you write or place text parahgraph settings must have hyphenation enabled as in the following picture: Create a style for the text to be hyphenated. Also check that there is no conflict between paragraph and style settings if you havent created a particular style for your text. Also keep in mind if you change style or paragraph settings on the fly, new settings won't affect text which have typed or imported before changing the setting. I'll hope this will help you start hyphenating your texts. MikaV
  3. Now there is a Windows 7 version on GIthub. Officially my executable builder PyInstaller does not support Windows 7 but according to the documentation builds should be compatible with Windos 7 also. Unfortunately I'm not able to conduct any tests in that platform so you must test the software all by your self (thoug this seems to be common practise nowadays 🤔). Here is the link: https://github.com/MikaVainio/AffinityPublisherFISpelling/releases/tag/v.1.0.3W7 You can now install also dictionaries from installer file. Then just use Windows explorer to copy or move dictionary files to appropriate folders in your system.
  4. Unfortunately I made this tool with Python 3.9 which does not support Windows 7 or earlier. I will rewrite it with Python 3.8 so it supports Windows 7 (but not XP). This may take some days before it will be ready for delivery (I must do work I'm paid for). I will inform you on this chain when it is ready. I will also make better installer than Nullsoft's installer with default settings will produce. MikaV
  5. I Will rebuild the installer at weekend. It is a clumsy one and you need administrator privileges when saving the settings file for the 1st time. I hope that there are no python version related issues. I dont remember exactly what is the mimimum Windows version for Python 3.9. Perhaps it needs Windows 8 or later. I Will check that during the weekend. MikaV
  6. There is now a repository in Github where you can find Finnish dictionaries and also a tool to add words to the spelling dictionary. Tool is kind of a beta version, but allows adding new words, sorting, removing duplicates and correcting the value of the word counter in the spelling dictionary. There is also an option to add words from Joukahainen xml based Finnish dictionary. There are some instructions also in the readme file and Wiki pages of the repository. Link to the repository is here: https://github.com/MikaVainio/AffinityPublisherFISpelling. I promised lacerto to try to make a tool. Unfortunately it is not possible to make modern spelling tool based on the Hunspell algorithm. I also decided not to implement reading of Publisher's custom dictionary, because Publisher reads Finnish spelling dictionary only at startup. But you may try the tool. At least there is now a place where you can find all the files needed for Finnish hyphenation and spell checking. At the moment I have been able to expand my spelling dictionary to 120 000 words in Windows by combining Hunspell and Joukahainen dictionaries. With my MAC I use operating system's spelling but hyphenation is made with hyphenation dictionary found in the repository. It seems to hyphenate correctly as the Auto option does not.
  7. That's what I have in mind. If you add a word into the custom dictionary it's a single case. But if you have a piece of software which reads the custom dictionary and adds the word and it's most important cases into the main dictionary. Then you have "vara-apulaisulkomaankauppaministeri", "vara-apulaisulkomaankauppamisterille", and so forth. Finnish is so complicated: cases, aspiration etc. But fortunately there are very few exceptions in the language. May be it's worth of trying. Original fi_FI.dic can be scanned for words to be added. If they are not found, append them to the file, sort lines to alphabetical order and update the row count. I this way resulting dictionary would be huge in size after couple of thousands updates, but modern computers probably can handle file without significant delays
  8. Thank you for this information. I stop searching for custom dictionary files. As I said earlier personally I'm not interested in spelling but hyphenation is essential to me. There is a possibility to make a separate tool for updating original fi_FI.dic file but I think it may be waste of time. For a quick look this file seems to have a repeating pattern feLP+emaN --- CustomWord --- DIU_ so it is quite easy to find out words that have been added to the custom dictionary. There are some symbols which integer values are less than 32 (minus signs in the example) , but those can be filtered out. I don't promise anything, but I can spend some hours in Christmas holidays trying to figure out how to make spelling better by updating the original fi_FI.dic file from the custom dictionary. I wonder if it is possible to crate some kind of algorithm to create most common cases too (not all 15, but most often used). I must study Voikko and perhaps some AI-tools can be used to create cases.
  9. Missing in my file also after adding some words. It seems that there is an additional custom dictionary where Publisher stores added words. Where it is located is not obvious, it can not be found under ProgramData\Affinity. Perhaps in a xml or a dat file in the .affinity\Publisher folder under user's profile. So the word count is not updated in the dictionary file nor any words added to file by Publisher. I changed fi_FI.aff and fi_FI.dic files to versions that can be found from apt packages https://www.apt-browse.org/browse/debian/wheezy/main/all/myspell-fi/0.7-18/file/usr/share/hunspell ( Fixx's post earlier in this chain). They seem to work much better and give sensible suggestions for spelling. Thus there are some additional repeating blocks of words at the end of fi_FI. dic file. I removed them and updated the word / row counter back to 88392. To make this easier for other Affinity users I put these files into a Github repository. I hope this does not violate anybody's intellectual rights. Here is the link: https://github.com/MikaVainio/AffinityPublisherFISpelling
  10. No, the character set was UTF 8 and no TRY clause. I was using the file from Johannes Wilenius. I edited the `aff`-file and changed characters to ISO8859-1 and added TRY block and started Publisher again but still all what I have written has a red underline. I even started a new file but same results. When I add words to dictionary all seems to work properly. Finnish Windows is some times a tricky one because it may use WIN1252 characters. I tried this also (SET WIN1252), but results were the same. Hyphenation file uses UTF 8 and it seems to work properly. I'm no expert in character transformations but I have experienced lots of difficulties when exporting and importing data between databases in Finnish and US English Windows machines even they all share the same locale settings. Perhaps I will conduct a test next week when I am on work again where I have US English Windows. When I looked `fi_FI.dic` file its anything but complete. I addes some words with learn spelling command and it seems to work OK. Thank you for your advice in this matter. I'll check the Mac version also this weekend and hope it will work more out of the box.
  11. OK, thanks a lot. I have also M1 Mini and the universal licence for Affinity products, so I will use Mac instead. I made a simple test with automatic spell checking on (Text - Spelling - Check Spelling While Typing) with same settings that you have been using. Thus I have Finnish Windows 10 Pro version which has spelling suomi(Suomi) setting in the Character Panel. My very poor results as follows: 🙂 The most important thing is hyphenation. I try to avoid typing directly to DTP application any way.
  12. Johannes Wilenius has excellent instructions on his Facebook post (https://www.facebook.com/johannes.wilenius/posts/10221435514069177). You can find it in this chain of posts as well. If you read his Facebook post there is a link to his Google Drive where you can find a zipped file containing files for publishing Finnish texts. Instructions are for Mac version but at least hyphenation works in Windows as well. According to Affinity's help (Windows 10 & Publisher v2): This is from Publisher v2 help. So you create a folder named fi_FI and add 3 files from the extracted zip file to to this folder. As far as I have used spelling checker, it does not recognize Finnish, but hyphenation works as expected.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.