![]() ![]() My use case: translate my book of 30 pages html, with bold text, custom xml tags, custom html entities, pre tags, tables. this can be an advantage, compared to other tools like doctranslate Im using the official webinterface of google translate, so i can fix translations with the help of google's dictionary. maybe someone wants to refactor this into a library? : ) My translate script has 700 lines, but also includes code to extract and insert text into my html source files. so we use "safe" ids without repetition Return parseInt(str.replace(//sg, '').split('').map(c => decodeNumTable).join(''), codeNumBase) Return num.toString(codeNumBase).split('').map(i => encodeNumTable).join('') Ĭonst decodeNumTable = omEntries(codeNumKey.split('').map((c, i) => )) The 12 safe symbols that are never changed by google are ^'*-/_" // 10 digits = 0123456789Ĭonst encodeNumTable = omEntries(codeNumKey.split('').map((c, i) => )) My current solution is to encode my index numbers with special characters. I found that google, in rare cases, also translates numbers!įor example google translated to in english to german. To expand on the "replace html with unique placeholders" solution: Nov 21, 2022, 2:52 PM UTC brake performance vs power stop dragon blox ultimate hack script pastebin the right stuff gasket maker for oil pan affordable build your own sectional vegan lunch meat walmart bad conduct discharge vs. This has been my most consistent solution. Google translate ukrainian to english amateur cum cum girls before we die channel 4. Leave it as, move it to, or move it to. This ran into the issue that languages would do one of three things to it. Solution UsedĪ different solution I tried was using similar to how Rafik Mikhael and Klesun did, and having a lookup table for what each number translated to. I was really hopeful that URLs would be recognized as a "don't mess with so that the link still works" but this isn't the case. Wenn Bluetooth eingeschaltet ist, sollten Sie ein in der oberen Leiste Ihres Telefons. It can work with some two word combined, such as MyLogo, but I noticed for the above example, aiming for IceCream caused German to do: When Bluetooth is on, you should see a IceCream icon in the top bar of your phone. If the non-replace text includes a % sign, this seems to often fail, and since encoding is about turning symbols into %xx, it's a crap shoot. #Text URL escaped in line with a site attachedĪnd use the REGEX of: \b(*)\b ![]() When Bluetooth is on, you should see a icon in the top bar of your phone. I tried to URL encode my text and slap that as part of a url, for example: #Source line ![]()
0 Comments
Leave a Reply. |