How to specify "Layout Grid" or "Margin/Column" for a new doc in the Japanese version
I am using the Japanese version of InDesign CS2.
When you open a new document in the Japanese version,
you can specify what kind of layout grid to use
"Layout Grid" (traditional Japanese layout) or
"Margin/Column" (normal English layout).
How do you specify this in scripting?
Thanks in advance.
function getLineAlignment(p_justification){
var lineAlignment = 0;
switch(p_justification){
case 1818915700: //left justify
lineAlignment = 1819047018;
break;
case 1818584692: //left
lineAlignment = 1818324084;
break;
case 1667591796: //center
lineAlignment = 1818321774;
break;
case 1919379572: //right
lineAlignment = 1818325602;
break;
case 1667920756: //center justify
lineAlignment = 1818455658;
break;
case 1919578996: //right justify
lineAlignment = 1819435626;
break;
case 1718971500: //full justify
lineAlignmentt = 1818651754;
break;
default: break;
return lineAlignment;
var myDoc;
var gridProp = {
appliedFont: pstyle.appliedFont,
fontStyle: pstyle.appliedFont.fontFamily,
pointSize: pstyle.pointSize,
characterAki: pstyle.pointSize*pstyle.tracking/1000,
lineAki: (pstyle.leading != Leading.auto? pstyle.leading: pstyle.autoLeading*pstyle.pointSize/100)- pstyle.pointSize,
horizontalScale: pstyle.horizontalScale,
verticalScale: pstyle.verticalScale,
lineAlignment: getLineAlignment(pstyle.justification),
gridAlignment: pstyle.gridAlignment,
characterAlignment: pstyle.characterAlignment
var storyPref = {frameType: FrameTypes.frameGridType, storyOrientation: StoryHorizontalOrVertical.horizontal}; //textFrameType, vertical, unknown
var marginPref = {columnCount: 2, columnGutter: 10*72/25.4, columnDirection: HorizontalOrVertical.horizontal, top: 5, bottom: 5, left: 5, right: 5};
app.layoutGridData.properties = gridProp;
app.storyGridData.properties = gridProp;
jxswm
Similar Messages
-
How do I move my Elements photo files to a new computer keeping the catalog & version sets?
How do I move my Elements photo files to a new computer keeping the catalog & version sets?
I recommend you ask that in the PSE forum. I'm sure there is some import/ export hocuspocus involved...
Mylenium -
I have the newest version of i-tunes and cannot for the life of me figure out how to set up home sharing to authorize a new computer! Everything I find on the subject is for older versions of i-tunes. PLEASE HELP. Thanks
Ok I found it. Alt S to get the top navigation menu!
-
is there an weather app that will work on the iphone beside yahoo please in the notification swipe, cause i download apple weather apps and they dont work that not right that money i paid, just want an weather app that will work with the iphone, telus is trying to help as well cause they should work but DON"T.
please dont erase a message that is true on finding something that might work.No matter how many times you ask this question, the answer is going to be the same.
You can submit feedback to Apple here:
http://www.apple.com/feedback -
Hello,
I am trying to provide different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position. I have 2 af:panelSplitter with orientation="horizontal" - One with positionedFromEnd="true" one with positionedFromEnd="false". I want to specify the horizontal collapse and restore icon using Skinning. I want specify different icons based on positionedFromEnd. When I specify icons they are appearing for both splitters. I gave 2 different styleClass to these splitter but it is not taking them in account,
JSPX Page -
<af:panelSplitter orientation="horizontal" splitterPosition="196" positionedFromEnd="false" id="pnlSplitterLeft" collapsed="false" styleClass="panelSplitterLeftClass">
<f:facet name="first">
<!-- Content of First Facets -->
</f:facet>
<f:facet name="second">
<af:panelSplitter orientation="horizontal" splitterPosition="196" positionedFromEnd="true" id="pnlSplitterRight" collapsed="false" styleClass="panelSplitterRighClass">
<f:facet name="first">
<!-- Content of First Facets -->
</f:facet>
<f:facet name="second">
<!-- Content of First Facets -->
</f:facet>
</af:panelSplitter>
</f:facet>
</af:panelSplitter>
CSS Skinn
af|panelSplitter::horizontal-restore-icon {
width: 10px;
height: 55px ;
content : url("/skins/AppSkin/Left_Open.gif");
af|panelSplitter::horizontal-collapse-icon {
width: 10px;
height: 55px ;
content : url("/skins/AppSkin/Left_Close.gif");
af|panelSplitter.panelSplitterLeftClass::horizontal-restore-icon {
width: 10px;
height: 55px ;
content : url("/skins/AppSkin/Left_Open.gif");
af|panelSplitter.panelSplitterLeftClass::horizontal-collapse-icon {
width: 10px;
height: 55px ;
content : url("/skins/AppSkin/Left_Close.gif");
af|panelSplitter.panelSplitterRighClass::horizontal-restore-icon {
width: 10px;
height: 55px ;
content : url("/skins/AppSkin/Right_Open.gif");
af|panelSplitter.panelSplitterRighClass::horizontal-collapse-icon {
width: 10px;
height: 55px ;
content : url("/skins/AppSkin/Right_Close.gif");
It is always showing Left_Open.gif and Left_Close.gif for both splitters. But I want different image.
How to specify different horizontal restore & collapse icon for af|panelSplitter using Skinning based on Style class or position?
- SujayCSS attribute selectors are what you are talking about, but binding the selector with EL is a more-common approach. Using selectors like this require you to ensure browser support.
af|panelSplitter.panelSplitterRighClass::horizontal-collapse-icon [positionedFromEnd=true] -
How can i set up multiple user accounts for my new ipad mini?
How can i set up multiple user accounts for my new ipad mini?
The iPad mini is basically a one user device. There are no Accounts. You can set up restrictions so that only you can do certain things.
-
How can i buy songs off itunes that you can't get on the Canadian version but you can in the u.k. version
I would really like to get these songs (not illegally like most people) because i really like them but they are only in the U.K. or Irish version of iTunes and I'm on the Canadian version
If anyone can tell me how i could possibly get these that would be great thanksOS X is the same no matter where you buy it. You can switch it to Japanese or one of 30 other languages in few seconds via the system preferences.
If you want a Japanese keyboard as well, you can select that when you configure your purchase:
http://store.apple.com/us/configure/MD093LL/A? -
How can I insert a number of photos in a numbers doc without the file becoming too large?
How can I insert a number of photos into a numbers doc without the file becoming too large?
Use smaller photos.
Seriously, reduce the file size of the photos in Preview, PhotoShop, iPhoto or other application before inserting tehem into the Numbers document.
Regards,
Barry -
I restored my pc and now it won't open itunes, when i try to, it reads " this version of itunes has not been correctly localized for this language. please run the english version." how do i fix this so i can open my itunes and back up my iphone?
Hey KEBENNETT,
It sounds like you've restored Windows on your PC and iTunes is no longer opening and running normally.
I'd recommend using the instructions found at step 4 and 5 in this article to repair or remove/reinstall your iTunes installation:
Issues installing iTunes for Windows - Apple Support
All the best,
Jeremy -
After the last update that I received I'm getting "This version of iTunes has not been correctly localized for this language please run the English version". How do I fix this?
Hello LKBrown608,
The article linked below provides some useful information that can help get iTunes running on your computer.
Issues installing iTunes or QuickTime for Windows
http://support.apple.com/kb/HT1926
Cheers,
Allen -
how could iI upgrade my OS from Mac OS 10.5.8 to the Latest version Mountain Lion
Hello,
You need to get 10.6 & update to 10.6.8 first to be able to buy it from the App Store & download it.
Snow Leopard/10.6.x Requirements...
General requirements
* Mac computer with an Intel processor
* 1GB of memory (I say 4GB at least, more if you can afford it)
* 5GB of available disk space (I say 30GB at least)
* DVD drive for installation
* Some features require a compatible Internet service provider; fees may apply.
* Some features require Apple’s MobileMe service; fees and terms apply.
Which apps work with Mac OS X 10.6?...
http://snowleopard.wikidot.com/
It's been pulled from the online store, so you have to call Apple to buy it, last I heard, but quick, call before it's gone!
Call Apple 1-800-MY-APPLE
You have to get 10.6.8 first to go even higher to 10.7 or 10.8 -
Since a recent Itunes upgrade I've lost the settings facility in home sharing to import tracks not in my library. When I check for updates I'm running the latest version. Any ideas how to resolve this?
Sadly, the iPhone 3G can not be upgraded beyond iOS 4.2.1.
-
How do I translate word perfect old files for my new iMac?
How do I translate Word Perfect old files for my new iMac? They are transferred from a 13-year-old Dell. My McLink did not work.
Thanks.The current version of the free LibreOffice continues to support Word Perfect documents. OpenOffice had to drop this support due to licensing issues. LO installs in two places: /Applications and your local Library/Application Support directory. Simple to install. Simple to remove. Good PDF documentation from their site. It is a capable MS Office replacement.
I just opened a wpd legal deposition in LO and it looked fine. -
Hi, I would like every new tab I open to open my homepage. How do I set this? I'm on a PC and downloaded the latest version of Firefox today. Many thanks!
Have a look at the [https://addons.mozilla.org/firefox/addon/new-tab-homepage/?src=ss New Tab Homepage] or the [https://addons.mozilla.org/en-US/firefox/addon/my-homepage/?src=search My Homepage] extensions. With My Homepage, if your homepage is set to a search engine, it will give focus to the homepage search bar instead of the address bar when opening a new tab. If you have any questions about installing extensions, [[Using extensions with Firefox]] can help.
-
How to specify 2 conditions in when settings for 2 items in dynamic actions
Hi,
How to use 2 conditions for 2 different items in Page rendering ->dynamic actions-------when event settings
Actually i have three items like A nd B nd c
If A=v,x,y,z and B=k,l............ i need to set some content like
"werttyyyy" in c and i need to make it as disable
if A=v,x and B=k ..................
i need to enter the text in c which i would like to be freetext and i need to make it as enable now
here it is i struck ------------Page rendering ->dynamic actions-------
when
event
change
select type
items
items
a,b
condition
<<<<<< how to mention my condition in tis column>>>>>>>>>>>>>>>>>>>>>>>
Regards,
PavanHi JTan414,
I have check the expression you have provided and there are many incorrect using of this expression, please check and do some modification as below:
For the MonthName function you should follow the grammar like:
=MonthName(10,True)
=MonthName(Month(Fields!BirthDate.Value),False)
="The month of your birthday is " & MonthName(Month(Fields!BirthDate.Value))
You have add the dataset name "DealStarts" at the wrong place, it should like below:
=Last(MonthName(Month(Fields!BirthDate.Value)),"DealStarts")
or
=Last(MonthName(Fields!IntegerValueField.Value),"DealStarts")
This will return the last value from the dataset
There is no function named launchdate, expression "launchdate ("RowofTrendingVisibility")" is incorrect and you shouldn't add the datasetname in this way.
If the expression involved of conditions from two different datasets, limit kinds of functions will support to use:
=Last(Fields!BirthDate.Value,"DataSetName")
=First(Fields!BirthDate.Value,"DataSetName")
More details information about how to use expression in SSRS:
Expression Examples (Report Builder and SSRS)
If you still have any problem, please try to provide more details information about your requirements and also some sample data.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support
Maybe you are looking for
-
Windows XP SP 3 - Blackberry Desktop Manager 6.0.2 Will Not Open
When I try to start the desktop manager software I immediately get the windows message: "BlackBerry Desktop Software has encountered a problem and needs to close. We are sorry for the inconvenience." I've consulted many resources and tried several
-
Itunes store not working properly after update 10.7
I just did the latest itunes update to 10.7 and initially itunes store seemed fine, I was browsing films and was able to view a trailer, but the screen changed and there were suddenly no images of fims or ability to view trailers and nothing happens
-
Syntax error in GP_ERR_RSAPTD1 row 27 encountered
Hi I encountered this error 'Syntax error in GP_ERR_RSAPTD1, row 27 ' when I was trying to create an InfoPackage which I intend to run the initialise with data transfer. The diagnosis message doesnt really give a clue saying 'Field "/BIC/CCZDM_PAR00
-
Hi Friends, I want to display Bill-To party of a sales order that is displayed under Partners tab of VA03. The same Bill-To party I found in KNVP table - KUNN2 field. I am selecting KUNN2 field based on KUNNR, VKORG in sales order and PARVW = 'RE'. B
-
IMovie continually crashes when trying to upload to You Tube
I cannot get iMovie to upload to You tube. It keep crashing.