public CTSettings createSettings() {
org.docx4j.wml.ObjectFactory wmlObjectFactory = new org.docx4j.wml.ObjectFactory();
CTSettings settings = wmlObjectFactory.createCTSettings();
// JAXBElement<org.docx4j.wml.CTSettings> settingsWrapped = wmlObjectFactory.createSettings(settings);
// 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");
language.setBidi( "km-KH");
language.setEastAsia( "ja-JP");