Fast and reliable file manipulation - General Topics

Hi guys, I have a problem, I want to add external packages to a TG01 ROM but all the files that I need to use are sorted like:
Package
-Register Keys
-DSM
-Files Directory
-Language Directory
-Files inside language directory.
I need to build a setup of 2 directories from this ones. One with the name of the package that would contain the Register Keys, DSM and Files.
And another one that would contain the Language Directory files.
That's an easy thing, but I need to do this to over 200 directories, so, do you understand how many time that kills from my life? :'(
Does anyone know how to solve it with batch files?

Related

Create your own dictionary : Stardict to Mdict

I wanted to create a new dictionnary (japanese 4 kanjis) from the very good data base of stardict (http://stardict.sourceforge.net/Dictionaries.php).
I used Mdict to implement it on the pocket PC as it allows you to create your own dictionary. I will here expand/update the already available tutorial that is to be find inside Mdict converter.
So here we go, and it is all for free !
needed software : mdx builder
from : http://www.octopus-studio.com/download.en.htm (you will see that there are already some dictionaries that have been made)
Steps to convert Star dict dictionary files into mdx format:
1) download the dictionary files in tarbal format from http://stardict.sourceforge.net/Dictionaries.php
here we use 4JWORDS (4-kanji ideomatic expressions and proverbs)
from
http://stardict.sourceforge.net/Dictionaries_ja.php as example
2) extract the file into a temporary directory for example: c:\temp
There should be 3 files in c:\temp now:
4jword3.dict.dz
4jword3.idx
4jword3.ifo
4) copy the "convstar.exe" and "star_style.txt" into c:\temp too. You will find these files in mdxbuilder, convstar folder.
5) run command prompt (you will find it on windows XP on start/all programs/accessories)
command promp must show the path c:\temp> (because the files you want to convert are there)
then write : convstar 4jword3.ifo k2e.txt
You will obtain a new file in yuor temp folder named k2e.txt
6) Run MdxConvert, fill in these parameters:
Source: C:\temp\k2e.txt
Target: C:\temp\JMDict4k2e.mdx
Style: C:\temp\star_style.txt
Original Format: MDict(Compact HTML)
Encoding: UTF-8(Unicode) <---Must use UTF-8 for all stardict dictionaries
Title: JMDict japanese 4 kanjis to english
Description: <font size=5 color=red> japanese 4 kanjis to english</font>
don't touch the rest
7) Click Start
8) Done.
Note: Some dictionaries contains International phonetic alphabets(IPA) symbols, to display them correctly, you need to install true type fonts which support IPA, for example the Lucida Sans Unicode font in win98/2000/XP
( copy the windows\fonts\l_10646.ttf into PDAs \windows\ or \windows\fonts\, may need to soft reset your pocket pc)
Voila monsieur, it is done.
If, still, there is a dictionary you would like but you don't feel like you can do it, I can try to upload converted files here (if it is OK with Xda-developers).
Cheers !
Great! Will link your tutorial from my fgorthcoming, related article(version)s!
nice !
Thank you, I wil try to post more useful post on that subject !
cheers
dam said:
If, still, there is a dictionary you would like but you don't feel like you can do it, I can try to upload converted files here (if it is OK with Xda-developers).
Cheers !
Click to expand...
Click to collapse
Hi. I hope you are still around to see this request. I like WordNet and I see that WordNet is up to 2.1 while the one that is available is 2.0. I was wondering if you knew how to create the 2.1 database as the files are not quite the same as Stardict. Thanks.
ftp://ftp.cogsci.princeton.edu/pub/wordnet
Just want to say thanks to dam. Great tutorial, I have just converted the Britannica Concise Encyclopedia from stardict to mdict and it worked like a charm.
-=Ri/\xim=-
P.S. I think the MDXbuilder application has changed since you wrote this tutorial as there is now another input panel called "data" when building the database module. I left this empty since I didn't know what it meant and it made no difference at all.
dam said
2) extract the file into a temporary directory for example: c:\temp
There should be 3 files in c:\temp now:
4jword3.dict.dz
4jword3.idx
4jword3.ifo
Click to expand...
Click to collapse
Hello dam, thank you so much for the instructions, but I am having problems extracting the 4JWORDS file. In fact, I don't understand how to extract it. I have tried using WINZIP and a RAR extractor but all to no avail. All I have in my temp directory is the single file that I downloaded from sourceforge "stardict-4jword3-2.4.2.tar.bz2"
Can someone tell me how to extract the 4JWORDS file into the three files
4jword3.dict.dz
4jword3.idx
4jword3.ifo
Thank you so much for your help!
hairyleprechaun
Hello Everyone,
Well, I managed to get the file properly extracted with 7-Zip and the I was able to create the k2e.txt file using the ConvStar application.
However, I have a problem now. When using the MdxBuilder application, the instructions say that I need to change the character encoding to UTF - 8 for converting stardict databases. Well, in my drop down box under encoding, I only have UTF - 16, ISO 8859-1, and GBK available. I don't have UTF - 8 available in the dropdown encoding box.
Will this cause a problem when converting the file?
I don't know if this will help or not, but on my computer I have Asian Languages turned on, and I often type in Chinese text.
Thanks for any help!
Scroll down, dude... then you'll find UTF-8
I was looking at the Star Dict website and found Word Net 3.0 in the database. I tried to use Convstar for the wordnet.ifo file, but found that the program was not able to open up the file. Is this program only meant for the Asian languages or is the program just unable to open this particular file? Thanks.
Didn't worked for me mate. Can You plz provide me the link for Wikipedia file of .Mdx, I wish if there is any updation to the database.
Hi,
You could try BVOCABULARY
http://forum.xda-developers.com/showthread.php?t=534306
http://bvocabulary.googlepages.com/home
Boki.

Modifying DSM files? (Rom Cooking)

First off what program do you use to modify dsm files? Also in my OEM_Lang_0409, OEMAPPS and OEMDrivers folders after I make changes (delete unwanted files and folders) when I push the COOK buttom it goes through the buildOS program file and creates a bunch of dsm files in these folders above. My problem is when I look at the dsm files in each folder they contain all of the programs and files I have deleted and also some other files I dont want. When I try to modify the dsm files I get an error message when running buildOS program and It wont let me flash the rom. How can I modify these dsm files to get rid of the things that are no longer in the folder? What exactly does a dsm file control? Will getting rid of the names in the dsm files that are no longer in the system help me at all? When I look at other peoples cooked roms the dsm files that I am talking about match what files and programs are in the above folders. I hope this makes sence. Thanks for the help.

How to clean up my windows folder

How to clean up my windows folder
- Remove touchflo 2d
- remove Htc Home plugin
my folder size more than 136 mb :S make my deivce so heavy :S
Dr.Mazika said:
How to clean up my windows folder
- Remove touchflo 2d
- remove Htc Home plugin
my folder size more than 136 mb :S make my deivce so heavy :S
Click to expand...
Click to collapse
install a clean rom, or customize your own. the windows directory is going to be a little large regardless, the operating system is there..
what is the normal size of windows folder
any how can i customize my room to remove and add new applications
That's basically what got this community started... just about everyone here can testify to having looked into ROM Cooking... please research before asking how to do it, because I PROMISE there's a thread or two out there about it
Clean windows folder possible ?
I'm trying to cook my own rom but when I add an EXT module, all files are in Windows directory and the app.dat file only copy them in the app directory.
So is it realy possible to have a clean windows directory, how to put files directly in app folder? must I use an OEM module with initflashfile or ???
thanks all
superraoul said:
I'm trying to cook my own rom but when I add an EXT module, all files are in Windows directory and the app.dat file only copy them in the app directory.
So is it realy possible to have a clean windows directory, how to put files directly in app folder? must I use an OEM module with initflashfile or ???
thanks all
Click to expand...
Click to collapse
All files go into \windows. The first thing you need to ask is this: do I need to copy the file into another directory, like \program files? A lot of apps work just fine if you leave all of the files in \windows. The files are going to be in \windows in one form or another, so you save space by just running the app out of \windows. You need to change shortcut paths and sometimes registry key paths to get this to work, but in my experience, it works about 95% of the time. Usually, if you've got a multi-component application (several files besides just the .exe), the .exe will search for other files it needs to run in the same directory that the .exe is located in, so you're good to go if everything is in \windows. Some apps have sub-folders, so you'll have to get that folder and its contents into \windows. The best way to do this is with a .cab file or a zip file during customization (using a mortscript for the latter). Zip files are nice, because they install really quickly and are easy to make and edit.
Anyway, if you need to get files into another directory for whatever reason, I'd say that the app.dat method is probably the worst, because if you have multiple files, then you increase the file count in \windows by that amount. Put them in a zip file or a cab file, and then you'll reduce the file count to 1 for the particular package. You will also compress the files, and save some rom storage space.
You can also look into \extendir for another method to clean up the \windows directory.
You do need to be careful with some apps if they have an .ini file or an .xml file or something similar that is basically a settings file. It's usually better if these files aren't read only, so you may need to figure a way to copy the file into the \windows directory.

Corrupt File Names

Guys - I am new to this, so please be patient!
I have a problem with a load of corrupt file names in my IE temporary files folder. I have no way to delete them - going through PIE's 'Memory' option does not work, Total Commander cannot delete them, I even tried with a DOS command line utility.
The problem seems to be that the OS is unable to delete the files because the files have invalid characters in their name. I have tried moving / renaming them, but again it dont work!
The files also have peculiar dates (eg 01/03/1601), and appaerently huge sizes (3GB!).
Is there any other way I can delete them?
Any suggestions to fix this would be much appreciated.
Thanks

[Q] How to modify any android apk file?

I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.

Categories

Resources