[{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/002/520/original/scribe.jpg?1783541876","metadata":{}},{"element_type":"text","content":"\n        \u003cp\u003eMicrobit programs for a simple translation of 2\u0026nbsp; Bible verses.\u003c/p\u003e\n\u003cp\u003eOriginally coded in Makecode:\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://makecode.microbit.org/_bpsPKrA7dRa8\"\u003ehttps://makecode.microbit.org/_bpsPKrA7dRa8\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/mrklingon/NuScribe\" target=\"_blank\"\u003eGithub repo \"NuScribe\"\u003c/a\u003e\u003c/p\u003e\n\u003ch2 class=\"heading-element\"\u003eProgram description\u003c/h2\u003e\n\u003cp\u003e\u003ca id=\"user-content-program-description\" class=\"anchor\" href=\"https://github.com/mrklingon/NuScribe/edit/main/README.md#program-description\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe program has two Bible verses, Isaiah 26:3 and John 3:16 from the King James version. Clicking \"A\" steps through five modes (below). Clicking on \"B\" initiates the mode action.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eSI - Show the Isaiah text\u003c/li\u003e\n\u003cli\u003eSJ - Show the John text\u003c/li\u003e\n\u003cli\u003eMX - refresh the \"translation matrix\"\u003c/li\u003e\n\u003cli\u003eTI - Show the \"translated\" text of Isaiah 26:3\u003c/li\u003e\n\u003cli\u003eTJ - Show the \"translated\" text of John 3:16\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2 class=\"heading-element\"\u003eRelexification process\u003c/h2\u003e\n\u003cp\u003e\u003ca id=\"user-content-relexification-process\" class=\"anchor\" href=\"https://github.com/mrklingon/NuScribe/edit/main/README.md#relexification-process\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eWhen the program starts, an array of generated words is created, one for each of the English words in the two verses. When called to \"translate\" the program goes word-by-word through the verse providing the generated word.\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cstrong\u003eImportant:\u003c/strong\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003eThis is not a real translation, but more of a coded-English approach.\u003c/p\u003e\n\u003ch2 class=\"heading-element\"\u003eCreating the words\u003c/h2\u003e\n\u003cp\u003e\u003ca id=\"user-content-creating-the-words\" class=\"anchor\" href=\"https://github.com/mrklingon/NuScribe/edit/main/README.md#creating-the-words\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe mkWrd() uses three inputs\u003c/p\u003e\n\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e rules = [\"CVC\", \"CV\", \"CVCVC\"]\n cons = \"tdkp\"\n vow = \"aeiouy\"\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eTo create a word, it chooses at random a \"rule\", then replaces each C in the rule with a random consonant and each V with a random vowel. This function can be updated with different or more rules. Also the vowels and consonants can be edited. For example if you added a string of \"eeee\" to the vowels, it would increase the likelihood of \"e\" being a vowel used.\u003c/p\u003e\n\u003ch2 class=\"heading-element\"\u003eRe-Coding in Python\u003c/h2\u003e\n\u003cp\u003e\u003ca id=\"user-content-re-coding-in-python\" class=\"anchor\" href=\"https://github.com/mrklingon/NuScribe/edit/main/README.md#re-coding-in-python\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTo rewrite the progam in Python, I changed the Makecode to display the Makecode version in Python. Then I went to\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003ca href=\"https://python.microbit.org/\"\u003ehttps://python.microbit.org\u003c/a\u003e\u003cspan\u003e\u0026nbsp;\u003c/span\u003eand copied pieces from Makecode to the Python editor.\u003cspan\u003e\u0026nbsp;\u003c/span\u003e\u003cem\u003eNote:\u003c/em\u003e\u003cspan\u003e You can't just copy the Makecode version - \u003c/span\u003ethe Python displayed by Makecode needed editing to get the program to work. One bonus of the python.microbit IDE is the scrolling of text can be sped up, making it less tedious.\u003c/p\u003e\n\u003ch3 class=\"heading-element\"\u003eBonus Python Feature\u003c/h3\u003e\n\u003cp\u003e\u003ca id=\"user-content-bonus-python-feature\" class=\"anchor\" href=\"https://github.com/mrklingon/NuScribe/edit/main/README.md#bonus-python-feature\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe python.microbit editor has a \"speech\" library! That lets you have the device \"speak\" your text. I added a toggle to turn it on/off (default = off). Touching the microbit logo toggles the feature - briefly showing a \"butterfly\" icon for \"ON\" and \"sleepy face\" for \"OFF\"\u003c/p\u003e\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\u003ch2\u003eImportant Disclaimer:\u003c/h2\u003e\n\u003cp\u003eAs noted - this is\u0026nbsp;\u003cem\u003e\u003cstrong\u003eNOT\u003c/strong\u003e\u003c/em\u003e a true translation.\u003c/p\u003e\n      ","metadata":{}}]