|
2 | 2 |
|
3 | 3 | ## An Easily Configurable Interactive Crossword Solver |
4 | 4 |
|
5 | | -### Version: Exolve v0.69 May 5 2020 |
| 5 | +### Version: Exolve v0.70 May 7 2020 |
| 6 | + |
| 7 | +Exolve can help you create online interactively solvable crosswords (simple |
| 8 | +ones as well as those that are jumbles or are diagramless or are 3-d, etc.) |
| 9 | +in any language. |
6 | 10 |
|
7 | 11 | The file *exolve.html* contains *all* the code you need: just make a copy and |
8 | 12 | then replace the part that contains the example grid with your own puzzle |
@@ -153,6 +157,8 @@ and the exolve-end line: |
153 | 157 | * exolve-question |
154 | 158 | * exolve-submit |
155 | 159 | * exolve-option |
| 160 | +* exolve-language |
| 161 | +* exolve-relabel |
156 | 162 |
|
157 | 163 | Each section has the section name (exolve-something), followed by a colon. |
158 | 164 | Other than the exolve-prelude, exolve-grid, exolve-across, exolve-down, |
@@ -293,7 +299,22 @@ must be provided). The solution letter will be pre-filled and will not be |
293 | 299 | editable. If all entries in a light are prefilled, and an anno is provided |
294 | 300 | for that clue, the anno will be shown automatically at start-up. |
295 | 301 |
|
296 | | -Here again is the complete list of decorators: |
| 302 | +If you use a language/Script that uses compound letters made up of multiple |
| 303 | +Unicode characters (for example, Devanagari—see the exolve-language section), |
| 304 | +then your _must_ separate grid letters (when specifying a grid with solutions) |
| 305 | +with a space (unless they are already separated by decorator). For example, |
| 306 | +this will *not* work: |
| 307 | +``` |
| 308 | + exolve-grid: |
| 309 | + सेहत |
| 310 | +``` |
| 311 | +This will work: |
| 312 | +``` |
| 313 | + exolve-grid: |
| 314 | + से ह त |
| 315 | +``` |
| 316 | + |
| 317 | +As a convenient reference, here again is the complete list of decorators: |
297 | 318 | ``` |
298 | 319 | | draw bar after |
299 | 320 | _ draw bar under |
@@ -697,6 +718,77 @@ The list of currently supported options is as follows: |
697 | 718 | the display of buttons to copy placeholder texts in those cases (see the |
698 | 719 | subsection below on "Jigsaw puzzle clues"). |
699 | 720 |
|
| 721 | +## exolve-language |
| 722 | + |
| 723 | +You can create crosswords in pretty much any language apart from English, |
| 724 | +using Exolve. You need to specify a line that looks like: |
| 725 | +``` |
| 726 | + exolve-language: <lang> <Script> [<max-char-codes-per-letter>] |
| 727 | +``` |
| 728 | +Here, <lang> is a |
| 729 | +[language code](https://www.w3schools.com/tags/ref_language_codes.asp) |
| 730 | +such as "ru" or "hi" and <Script> is the name of the |
| 731 | +[Script](https://tc39.es/ecma262/#table-unicode-script-values) |
| 732 | +to use for that language, such as "Devanagari" or "Cyrillic". |
| 733 | +Examples: |
| 734 | +``` |
| 735 | + exolve-language: hi Devanagari |
| 736 | +``` |
| 737 | +``` |
| 738 | + exolve-language: ru Cyrillic |
| 739 | +``` |
| 740 | + |
| 741 | +On an exolve-language line, you can optionally specify a third parameter, |
| 742 | +"<max-char-codes-per-letter>". In some languages such as those using the |
| 743 | +Devanagari script, multiple unicode characters are combined together to |
| 744 | +form a single compound letter (for example, स्सा in Devanagari is made up |
| 745 | +of four characters). In these situations, you can specify |
| 746 | +<max-char-codes-per-letter> as the limit on how many characters you want |
| 747 | +to allow to go into a composite letter, at most. For Devanagari, the software |
| 748 | +already sets this to 4 (but you can override that if you specify a value |
| 749 | +here). When <max-char-codes-per-letter> is greater than 1, auto-advance is |
| 750 | +disabled, as the software cannot know when a letter being entered in a cell |
| 751 | +is finished—solvers need to use the arrow key or need to click on the next |
| 752 | +cell when they finish typing a letter. |
| 753 | + |
| 754 | +When you use a language other than English, you may also want to change the |
| 755 | +text displayed in various buttons etc. to that language. You can do that |
| 756 | +using an exolve-relabel section (see below). Further, you may want to let |
| 757 | +solvers know that they have to use a suitable input mechanism for the |
| 758 | +Script you have specified (Google Input Tools works well on Chrome). |
| 759 | + |
| 760 | +## exolve-relabel |
| 761 | + |
| 762 | +You can change the text of any button or label in the rendered grid. This is |
| 763 | +particularly useful if you want to set a crossword in a language other than |
| 764 | +English. The text of any HTML element that has an id can be modified in this |
| 765 | +section. It can be set to some other text (or HTML), using the syntax: |
| 766 | +``` |
| 767 | + <id>: <new label> |
| 768 | +``` |
| 769 | +The section can contain multiple such relabelings, one per line. Example: |
| 770 | +``` |
| 771 | + exolve-relabel: |
| 772 | + clear: <b>Erase</b> this entry |
| 773 | + across-label: <i>Swimming Across!</i> |
| 774 | + down-label: <i>Sinking Down (नीचे)!</i> |
| 775 | +``` |
| 776 | +Here are some of the ids that you can relabel: |
| 777 | +| ID | Current label (that you can replace) | |
| 778 | +|----------------|--------------------------------------| |
| 779 | +| clear | Clear this | |
| 780 | +| clear-all | Clear all! | |
| 781 | +| check | Check this | |
| 782 | +| check-all | Check all! | |
| 783 | +| reveal | Reveal this | |
| 784 | +| reveal-all | Reveal all! | |
| 785 | +| setter-by | By | |
| 786 | +| squares-filled | Squares filled | |
| 787 | +| submit | Submit | |
| 788 | +| across-label | Across | |
| 789 | +| down-label | Down | |
| 790 | + |
| 791 | + |
700 | 792 | ## Saving state |
701 | 793 | The software automatically saves state. It does so in the URL (after the #) |
702 | 794 | and also in a cookie, using the id specified in the exolve-id section as the |
|
0 commit comments