[Q] editing learnt words (personalization data) - Android Q&A, Help & Troubleshooting

Dear Experts,
The file "dynamic.lm" stores the user's learnt words. I want to read the file and extract the words. What is the conversion tool or application needed to open the file in human readable language.
Note: the beginning of the file starts with "Fluency language model file;Dynamic language model created in DynamicTermModel::write()"
Regards....

Related

[Q] Create .pk8 from testkey.x509.pem file

Hello,
I need a specific key for sign update.zip for android device. In this device, i've find a file x509.pem, containing the sentences "-----BEGIN CERTIFICATE-----" with a long key, and at the end : "-----END CERTIFICATE-----".
But, i need a pk8 file for sign my zip and i don't know how i can to proceed for do that ...
I've read documentation on "openssl pkcs8" tool, but i can't to convert my x509.pem to .pk8 .(I'm just a beginner).
Thanks for your help.

[Q] ApplyRecovery.bat

this is gonna sounds stupid but i followed every step but i cant seem to get the file to be only ApplyRecovery.bat, thats how i named the files but it does only open notepad....like if it was reading ApplyRecovery.bat.txt
Step 5: create a text file using notepad, called ApplyRecovery.bat. Make sure it is not named "ApplyRecovery.bat.txt" . It will contain the following lines (copy/paste is fine)
i did it finally
For future reference, it might help others if you explained how you solved your problem. For example, given this issue where the file is opening in notepad, one of the following possibilities is apparent:
1. When saving the file, you did not enclose the file name in quotes, e.g. "ApplyRecovery.bat". Enclosing the file name in quotes overrides the automatic generation of extensions and saves the file exactly as you wish.
2. Batch files, files ending in .bat, were set to open in notepad instead of being ran when double-clicked. This would by necessity require you to delete the file association before the batch file would work.

[TUT][GUIDE] How to add user dictionary to aosp 4.0.4 keyboard

In AOSP keyboard is EN, DE, ES, FR and IT include, so you dont need any user dictionary.
I will show you, how i make my own hungarian user dictionary in 5 min, with 30.000 words.
What you need:
Rooted 4.0.4
AOSP Keyboard
Root explorer (or similar)
Word list in your language Some list is here: http://udm.adrianvintu.com/, but you can search by google. You can search your frequency list here. I find out, that up to 10.000 word user dictionary don't slow down your keyboard.
For editing db file: sqliteman
At first save some words to user dict in your phone.
Then witth root exploer copy:
data/data/com.android.providers.userdictionary/databases/user_dict.db to sd card, then from sd card copy it to PC
Then run sqliteman. Open user_dict.db
Dubble click on words. Click export data (above wordlist, near „Mona Lisa” See pict. 1.
Choose csv, export to file, add a filename (I added „probe”), Encoding: UTF-8, Line End: MS WINDOWS See pict. 2
Now you have a 'probe' file in the folder you have saved 'user_dict.db'
Open it with notepad, or notepad ++, and replace all ',' with ';' and delete all ”. Save, and rename the file to „probe.csv”
Now you can open it with excel.
In excel you should see somthing like in pict. 3
Open your downloaded worlist add copy all words to column B. Pull down the sequence number, language code, and the other 2 numbers. Save the file.
Delete all rows you had in „user_dict.db”
Now go to sqliteman, and click on Database --> Import table data, then import your edited csv file. In import choose semicolon. Click Ok.
Above wordlist click on „Commit the current transaction int he result table”. It is the icon with the green arrow.
Click File --> Exit.
Now you have a user dictionary with lot of words in your language.
Copy the modded user_dict.db from PC to sd card root, then with root explorer replace orginal file with that one.
Thats it. For me works perfectly.
Ps.: Sorry for my bad english
In these link you can search if your language is supported in keyboard:
LatinIME merged
Now: Hungarian, Persian, Czeh, Ukrainan, Bulgarian, Croatina, Greek is supported.
If AOSP keybord has your language letters, then you can add your user dictionary.
Indonesia please.
Sent from my ST18i using Tapatalk 2
Ridho1 said:
Indonesia please.
Sent from my ST18i using Tapatalk 2
Click to expand...
Click to collapse
I think you must wait until CM9 support your language.
you can find more dictionaries in open office sources. try them

Amazfit Cor font change?

is there possible change font that support ÄÖ letters?
Vihru said:
is there possible change font that support ÄÖ letters?
Click to expand...
Click to collapse
I have the same issue with accented / special characters.
Have a look here and maybe we could find a solution with the help of other members
https://forum.xda-developers.com/sm...hinese-cor-t3775769/post76183796#post76183796
I had the same problem, then I used the " Tools & Amazfit and ad a filter to replace ä/ö with ae oe
https://play.google.com/store/apps/details?id=cz.zdenekhorak.amazfittools
Sorgenbringer said:
I had the same problem, then I used the " Tools & Amazfit and ad a filter to replace ä/ö with ae oe
https://play.google.com/store/apps/details?id=cz.zdenekhorak.amazfittools
Click to expand...
Click to collapse
but thats not help, then it shows ae and oe..
Sorgenbringer said:
I had the same problem, then I used the " Tools & Amazfit and ad a filter to replace ä/ö with ae oe
https://play.google.com/store/apps/details?id=cz.zdenekhorak.amazfittools
Click to expand...
Click to collapse
Yeah, that would not be a real solution for my case, either.
You see the Greek language can have every single vowel accented. In that case we're talking about too many accented / special characters.
A more appropriate solution would be to be able to change the whole font family, and include one that supports our language's special characters.
Thank for the suggestion, though
amazfit cor greek accented characters font change
Vihru said:
is there possible change font that support ÄÖ letters?
Click to expand...
Click to collapse
many thanks to chienkd for his help
1. Download Python tool, extract and install
http://www.mediafire.com/file/opj7aj...PythonFont.zip
2. Download python script tool, extract and copy files to python directory (c:\Python34)
http://www.mediafire.com/file/9bbtxr.../Tool_font.zip
3. Download font file
You can use font file "Mili_chaohu.ft" inside any Mifit.apk/assets/
4. Extract font file to character files
open a command prompt window, and use the command below to unpack
.\bipfont.py unpack Mili_chaohu.ft
a folder called bmp is created with all the .bmp characters inside
5. Remake or make new characters
+ Use any image editor to make your own font file (black background, white text, bmp format 2 colors, 16x16 pixel square, name xxxxy.bmp)
+ xxxx is the character unicode code name.
+ use unicode utility to find the unicode of each character (https://unicode.org/cldr/utility/character.jsp?a=U+0041&B1=Show)
+ y: the distance by pixel from the bottom.
+ Copy all your own characters to the extracted bmp folder (4).
6. Rebuild font file from characters folder (bmp folder) with the command below
.\bipfont.py pack New_Mili_chaohu.ft
copy New_Mili_chaohu.ft to a new folder and rename it to Mili_chaohu.ft
7. Install your font file to your device.
+ unpair from mifit app
+ install gadgetbridge (from playstore) and pair it with band
+ upload your own font "Mili_chaohu.ft" to your phone
+ use File Manager Open file Mili_chaohu.ft
+ choose "gadgetbridge installer" option
+ tap "install" and wait
+ uninstall gadgetbridge when success
+ pair again with mifit
the file attached has greek accented characters
Hey there.
I have taken pmatsou's great work (credits to him and chienkd) and I have added an indirect solution for the Greek Uppercase Accented characters.
With my attached file the greek uppercase accented characters (which still showed up as "?") have been replaced with the corresponding non-accented characters. I chose this solution as I do not have time to get into Photoshop, etc and create new ones. One other solution would be to "borrow" some of the cyrillic characters that look like greek uppercase accented characters and already exist within the BMP directory described below, and rename them to match the right ASCII code (see here: https://en.wikipedia.org/wiki/ISO/IEC_8859-7 ). I tried this but I did not like the result. So. if you want to try / test the (attached) file, just start from step 7. Once more, thanks to pmatsou for the help on this and to chienkd for the steps on the original guide.
p.s. I'M NOT RESPONSIBLE FOR ANY DAMAGED / BRICKED DEVICE!
UPDATE (18/09/2018): I have re-uploaded an updated font file with some additional improvements on complex greek accented characters (that I created in Photoshop) such as the ones that show on the attached photo ( ΐ , ΰ, ϊ, ϋ )
pmatsou said:
many thanks to chienkd for his help
1. Download Python tool, extract and install
http://www.mediafire.com/file/opj7aj...PythonFont.zip
2. Download python script tool, extract and copy files to python directory (c:\Python34)
http://www.mediafire.com/file/9bbtxr.../Tool_font.zip
3. Download font file
You can use font file "Mili_chaohu.ft" inside any Mifit.apk/assets/
4. Extract font file to character files
open a command prompt window, and use the command below to unpack
.\bipfont.py unpack Mili_chaohu.ft
a folder called bmp is created with all the .bmp characters inside
5. Remake or make new characters
+ Use any image editor to make your own font file (black background, white text, bmp format 2 colors, 16x16 pixel square, name xxxxy.bmp)
+ xxxx is the character unicode code name.
+ use unicode utility to find the unicode of each character (https://unicode.org/cldr/utility/character.jsp?a=U+0041&B1=Show)
+ y: the distance by pixel from the bottom.
+ Copy all your own characters to the extracted bmp folder (4).
6. Rebuild font file from characters folder (bmp folder) with the command below
.\bipfont.py pack New_Mili_chaohu.ft
copy New_Mili_chaohu.ft to a new folder and rename it to Mili_chaohu.ft
7. Install your font file to your device.
+ unpair from mifit app
+ install gadgetbridge (from playstore) and pair it with band
+ upload your own font "Mili_chaohu.ft" to your phone
+ use File Manager Open file Mili_chaohu.ft
+ choose "gadgetbridge installer" option
+ tap "install" and wait
+ uninstall gadgetbridge when success
+ pair again with mifit
the file attached has greek accented characters
Click to expand...
Click to collapse
AMAZFIT BIP Romanian PACK
This Pack supports Italian, German, Turkish, Hungarian and Vietnamese languages to which I've also corrected/added all Romanian Characters ăîșțâ ĂÎȘȚÂ.
(Pachet diacritice pentru Amazfit BIP/Cor)
I don't really know who created the first fonts, so please excuse me.
I'll add the original link here. Original credits go to Eddi of GizROM team and yener.
Feel free to use - Mihai Olimpiu-Cristian
Bip_Font.zip - all files needed for mod - except Python
Mili_chaohu_uni.zip - +Romanian pack
EDIT: Fixed A,I y position? Was that a bug in the original font?
LostEchoes said:
Hey there.
I have taken pmatsou's great work (credits to him and chienkd) and I have added an indirect solution for the Greek Uppercase Accented characters.
With my attached file the greek uppercase accented characters (which still showed up as "?") have been replaced with the corresponding non-accented characters. I chose this solution as I do not have time to get into Photoshop, etc and create new ones. One other solution would be to "borrow" some of the cyrillic characters that look like greek uppercase accented characters and already exist within the BMP directory described below, and rename them to match the right ASCII code (see here: https://en.wikipedia.org/wiki/ISO/IEC_8859-7 ). I tried this but I did not like the result. So. if you want to try / test the (attached) file, just start from step 7. Once more, thanks to pmatsou for the help on this and to chienkd for the steps on the original guide.
p.s. I'M NOT RESPONSIBLE FOR ANY DAMAGED / BRICKED DEVICE!
UPDATE (18/09/2018): I have re-uploaded an updated font file with some additional improvements on complex greek accented characters (that I created in Photoshop) such as the ones that show on the attached photo ( ΐ , ΰ, ϊ, ϋ )
Click to expand...
Click to collapse
Hi,
I wanted to add your Greek characters to my file, but the sheer size difference is enormous 1704 vs 30104 characters, It seems your file also includes all Chinese characters ?! I just don't know why it's so big.
I don't know what is the maximum file size, and I'm sure that adding everything is not a solution?! (or is it?)
It seems what I've started with is more EU oriented than your base.
If you want to provide the BMP's for every greek character you added, we could provide users with a streamlined file that is specifically designed to support EU languages.
mihaiolimpiu said:
Hi,
I wanted to add your Greek characters to my file, but the sheer size difference is enormous 1704 vs 30104 characters, It seems your file also includes all Chinese characters ?! I just don't know why it's so big.
I don't know what is the maximum file size, and I'm sure that adding everything is not a solution?! (or is it?)
It seems what I've started with is more EU oriented than your base.
If you want to provide the BMP's for every greek character you added, we could provide users with a streamlined file that is specifically designed to support EU languages.
Click to expand...
Click to collapse
Yes, in my file I did not remove the Chinese characters. I just played with and changed / edited / added some of the Greek characters.
I cannot give you all the Greek characters for the Cor, because I'm not even sure if I have the time to find all of them right now. I wish I could find the time... But, I can give you a file with only the ones that I changed. So, if your file already includes the original / initial Greek characters, you could just copy the ones I'm sending you and replace (overwrite) the original ones, right ? This way your file will have the ones I changed + the ones that I did not have to change but are needed for the COR to display the Greek language.
Here is a zip file (attached) with the one I edited...
LostEchoes said:
Yes, in my file I did not remove the Chinese characters. I just played with and changed / edited / added some of the Greek characters.
I cannot give you all the Greek characters for the Cor, because I'm not even sure if I have the time to find all of them right now. I wish I could find the time... But, I can give you a file with only the ones that I changed. So, if your file already includes the original / initial Greek characters, you could just copy the ones I'm sending you and replace (overwrite) the original ones, right ? This way your file will have the ones I changed + the ones that I did not have to change but are needed for the COR to display the Greek language.
Here is a zip file (attached) with the one I edited...
Click to expand...
Click to collapse
Hey, checkout my new thread, I've also added emoji support
I'll take a look at what you edited, I also have access to some resources, if they fit, I'll add, or if you want just take the emoticons from my pack, pretty straightforward as they are one after the other (+ some extra characters but not that important, really)
---------- Post added at 02:23 AM ---------- Previous post was at 01:39 AM ----------
LostEchoes said:
Yes, in my file I did not remove the Chinese characters. I just played with and changed / edited / added some of the Greek characters.
I cannot give you all the Greek characters for the Cor, because I'm not even sure if I have the time to find all of them right now. I wish I could find the time... But, I can give you a file with only the ones that I changed. So, if your file already includes the original / initial Greek characters, you could just copy the ones I'm sending you and replace (overwrite) the original ones, right ? This way your file will have the ones I changed + the ones that I did not have to change but are needed for the COR to display the Greek language.
Here is a zip file (attached) with the one I edited...
Click to expand...
Click to collapse
I've checked out the modifications, and there are 21 incompatible characters, some of them are for Romanian . It's too late, but I think I'll give up for now
Font seems different, I use 2 for above accents, 4 for bottom accents for y value, different bases I think... also all characters seems to be centered in the bitmap. not compatible... (mine are left aligned).
I've found the base for the font in the meantime. https://github.com/amazfitbip/font/

header files not found problem on cxxdroid

hi I'm new to c++ coding and I'm asking how to create and include a header file in a c++ program on Android, I've looked online on how to create the header file but whenever I include it with the complete path the compiler gives me a fatal error file not found message,whether I'm using termux emulator or CXXDROID IDE, I don't know why this is the case.
please help me because I'm stuck with this problem for days and I need to solve it in order for me to write meaningful programs as I'm using Programming Principles and Practice Using C++ Second Edition by Bjarne Stroustrup which uses a lot of user defined functions for the projects.
thanks in advance.
I've included the complete path of the header files and created the proper headers,

Categories

Resources