Alef/stringtable.csv – User

From Bohemia Interactive Community
Jump to navigation Jump to search
 
mNo edit summary
Line 4: Line 4:


==My way==
==My way==
Only with ArmA.


===Openoffice.org===
===Openoffice.org===
* Open the stringtable.csv you want
* Open the stringtable.csv you want
## Use "Character set" -> "Unicode (UTF-8)". You may get "Western Europe (Windws-1252/WinLatin 1)", but it is wrong.
# Use "Character set" -> "Unicode (UTF-8)". You may get "Western Europe (Windws-1252/WinLatin 1)" by default, but it is wrong.
## Use "Separated by" -> "Comma"
# Use "Separated by" -> "Comma"
## Use the "Text delimiter" " (double quote). These are going to be removed, but we will add it later again
# Use the "Text delimiter" " (double quote). These are going to be removed, but we will add it later again
*** This is needed, otherwise sentences with comma will be spanned across columns.
#* This is needed, otherwise sentences with comma will be spanned across columns.
* Do the work
* Do the work
* Save the file as openoffice document (.ods) and work with that.
* Save the file as openoffice document (.ods) and work with that.
Line 29: Line 30:
# Click "Save"
# Click "Save"
# If you get a dialog warning about, confirm you want to keep the current format.
# If you get a dialog warning about, confirm you want to keep the current format.
* As you get "Export to text files" options:
# As you get "Export to text files" options:
## Use "Character set" -> "Unicode (UTF-8)"
## Use "Character set" -> "Unicode (UTF-8)"
## Use "Field delimiter" -> " , " (comma)
## Use "Field delimiter" -> " , " (comma)
Line 36: Line 37:
## Click "OK"
## Click "OK"


If you had empty rows, these will be exported with commas. Don't know if will cause problems. In case, just delete empty rows before exporting.
If you had empty rows, these will be exported with commas, something like ",,,,,,,," . Don't know if will cause problems. In case, just delete empty rows before exporting.


===Google Documents===
===Google Documents===

Revision as of 13:26, 26 January 2009

W.I.P.

Start from here: http://community.bistudio.com/wiki/Stringtable.csv

My way

Only with ArmA.

Openoffice.org

  • Open the stringtable.csv you want
  1. Use "Character set" -> "Unicode (UTF-8)". You may get "Western Europe (Windws-1252/WinLatin 1)" by default, but it is wrong.
  2. Use "Separated by" -> "Comma"
  3. Use the "Text delimiter" " (double quote). These are going to be removed, but we will add it later again
    • This is needed, otherwise sentences with comma will be spanned across columns.
  • Do the work
  • Save the file as openoffice document (.ods) and work with that.

When ready to export back to arma

  1. Select all the columns but the first
  2. Do a "Find & Replace"
  3. Open "More options"
  4. Check "Current selection only"
  5. Check "Regular expressions"
  6. Type .* in "Search for"
  7. Type "&" in "Replace with" (be sure you put exactly "&", with the double quotes around)
  8. Click "Replace All"

Your document is now ready to be exported. You can still work this way, if you want. To do the final export to ArmA

  1. Click "Save as ..."
  2. Use "Save as type:" -> "Text CSV (.csv)"
  3. Check "Edit filter settings"
  4. Click "Save"
  5. If you get a dialog warning about, confirm you want to keep the current format.
  6. As you get "Export to text files" options:
    1. Use "Character set" -> "Unicode (UTF-8)"
    2. Use "Field delimiter" -> " , " (comma)
    3. Use "Text delimiter" -> none, delete what it is showed there
    4. Check "Save cell content as shown"
    5. Click "OK"

If you had empty rows, these will be exported with commas, something like ",,,,,,,," . Don't know if will cause problems. In case, just delete empty rows before exporting.

Google Documents

This can be nice when have to work with more people or just to have it published on the web.

MS Excel

MS Excel doesn't have the option to use UTF-8 when exporting to .csv .