// Create object for characterSpacingControl
CTCharacterSpacing characterspacing = wmlObjectFactory.createCTCharacterSpacing();
settings.setCharacterSpacingControl(characterspacing);
characterspacing.setVal(org.docx4j.wml.STCharacterSpacing.COMPRESS_PUNCTUATION);
// Create object for noLineBreaksAfter
CTKinsoku kinsoku = wmlObjectFactory.createCTKinsoku();
settings.setNoLineBreaksAfter(kinsoku);
kinsoku.setVal( "$([\\{£¥‘“〈《「『【〔$([{「£¥");
kinsoku.setLang( "ja-JP");
// Create object for noLineBreaksBefore
CTKinsoku kinsoku2 = wmlObjectFactory.createCTKinsoku();
settings.setNoLineBreaksBefore(kinsoku2);
kinsoku2.setVal( " !%),-.:;?]}¢°’”‰′″℃、。々〉》」』】〕゛゜ゝゞ・ヽヾ!%),.:;?]}。」、・゙゚¢");
kinsoku2.setLang( "ja-JP");
// Create object for themeFontLang
CTLanguage language = wmlObjectFactory.createCTLanguage();
settings.setThemeFontLang(language);
language.setVal( "en-US");