Get specific information from executives of related texts
Hi all
So here's my question. I need to get information from text within a thick layer. The layer contains images and text and the text is the information that I need, which looks like this:
(4) L attest 1,2,3,4
(13) XL 5,7,8,9,10,11,12,14,15,17,19,20,21 bolt torque
(4) bolt torque 22,23,25,27 XXL
(1) XXXL 34 bolt torque
I need to do three things: the number that represents the number inside the parenthesis, the size that it is the next set of letters (L, XL, XXL, XXXL) and the list of numbers (I need not "# s" characters), and information storage together to know for example that size L has a 4 number and numbers are 1,2,3 and 4.
If someone could point me in a direction to achieve this I would really appreciate it. I'm working on CS6.
Thank you.
This is not EXACTLY how I described above... but this is the one I tested with. It doesn't have the conditional statement about whether she should use asterisks or peren and me have just pre-programmed the chain of the textFrame. It worked for me. It will be perhaps more useful than this wall of text and attempts at explanations...
function getRoster() { var roster = {}; var text = "(4) AL #'s 1,2,3,4\ (13) AXL #'s 5,7,8,9,10,11,12,14,15,17,19,20,21\ (4) AXXL #'s 22,23,25,27\ (1) AXXXL #'s 34\ \ TOTAL: 22" var lines = text.split('\n'); roster["sizes"] = {}; for(var a=0;a5 && lines[a].indexOf(":") == -1) { var qty = lines[a].substring(lines[a].indexOf("(")+1, lines[a].indexOf(") ")); var size = lines[a].substring(lines[a].indexOf(") ")+2, lines[a].indexOf(" #")); var nums = lines[a].substring(lines[a].indexOf("s ") + 2, lines[a].length); nums = nums.split(","); roster["sizes"][size] = {}; roster["sizes"][size]["quantity"] = qty; roster["sizes"][size]["numbers"] = nums; } } return roster; } var theRoster = getRoster();
This script returns the next object and saves it under theRoster:
var theRoster = { "sizes" : { "AL" : { "numbers": ["1", "2", "3", "4"], "quantity" : 4 }, "AXL" : { "numbers":["5","7","8","9","10","11","12","14","15","17","19","20","21"], "quantity" : 13 }, "AXXL" : { "numbers": ["22","23","25","27"], "quantity" : 4 }, "AXXXL" : { "numbers" : ["34"], "quantity" : 1 } }
Tags: Illustrator
Similar Questions
-
Get specific information from XML using PLSQL
Hi friends,
XML entry
' <? XML version = "1.0" encoding = "UTF-8"? >
< major >
< minor >
< > 12345 line_id < / line_id >
< service_Line >
< > 1111 line_id < / line_id >
< product_id 56789 > < / product_id >
< / service_Line >
< service_Line >
< > 22222 line_id < / line_id >
< / service_Line >
< service_Line >
< > 3333 line_id < / line_id >
< > 23456 product_id < / product_id >
< > 999999 product_id < / product_id >
< / service_Line >
< service_Line >
< > 4444 line_id < / line_id >
< / service_Line >
< / minor >
< service_Line >
< > 5555 line_id < / line_id >
< > 666666 product_id < / product_id >
< > 121212 product_id < / product_id >
< / service_Line >
< service_Line >
< > 5555 line_id < / line_id >
< / service_Line >
< / major >
`
from the above XML code
I want the line_id and the Product_id of the tag service_line and ignore the line_id in the tag of service_line that does not product_id
so I need the information below
Service_line
product_id
1111
56789
3333
23456
3333
999999
5555
666666
5555
121212
Or as
Service line - 1111
Product_id - 56789
Service - line 3333
Product_id -23456
Product_id - 999999
Service - line 5555
Product_id -666666
Product_id - 121212'
Oracle version:
PL/SQL Release 11.2.0.3.0 - Production
Thanks in advance
Come on... I have already answered here: Re: Re: parsing XML and get the required data only PLSQL using
Please stay focused
select x.* from xmltable( xmlnamespaces(default 'urn:xyz:ccw:config:common:data') , 'for $i in //serviceLine , $j in $i/coveredProduct return element r { $i/lineId , $j/childProductLineId }' passing v_xml_response columns seq_id for ordinality , child_product_line_id number path 'childProductLineId' , service_line_id number path 'lineId' ) x ;
-
Hello
I use a cRIO-9025 controller and want to get the information from the c: disk volume using the function to read the Volume information in the palette file I/O. When I run the function with the path as "C:\". ", the function returns a 7 error indicating that the path is incorrect.
I used this function before with cRIO but unfortunately I have not any older devices with me to check this out now. I'm using LabVIEW 2009 SP1.
Thank you very much!
See you soon!
Sankah2k
On real-time targets VxWorks, the root of the path of the file is here (in lowercase). Try and let us know if it works. You would be better to use the constant path of the file to understand what looks like the path of the root directory.
-
What is the command of shortcut for all windows get the information from the computer?
What is the command of shortcut for all windows get the information from the computer?
instead of going to the computer / my computer > properties > discover the pc... basic information or go to the control panel...
just a command for windows xp, vista, 7 for system looking for information....
original title: what is the SHORTCUT COMMAND to get information from the computer system?
Hello BlackSecret,
The keyboard shortcut to get to the top of this information is Windows key + break Attn.
Who does what you ask? -
Where can I get my information from pop3 to set up my e-mail account?
Original title: "windows mail"
How can I set up mail windows using windows vista? where can I get my information from pop3 to set up my e-mail account?
Thank you
How can I set up mail windows using windows vista? where can I get my information from pop3 to set up my e-mail account?
Thank you
http://www.SimpleHelp.NET/2007/02/07/a-beginners-guide-to-setting-up-Windows-Mail/
Link above has an easy to follow Guide to set up Windows Mail.
Contact your ISP (Internet Service Provider).
They offer your broad band/Dial-up connection.
Ask them to:
username
password for your service account to wide band/Dial-Up with themServer of incoming POP3 mail
outgoing mail SMTP serverThe above information is required to set up Windows Mail.
ISPS are usually happy to help you set up your email account.
See you soon.
Mick Murphy - Microsoft partner
-
How to link two executives of related texts?
Hi all
I'm new to the sdk. I have UIDref of executives two related texts, how it can be screwed?
«Indesign 5.0»
Thanks in advance
A.Hakkim
You must add the UID of the kMultiColumnItemBoss kTextLinkCmdBoss itemList.
For the multiColumnItemUID of kSplineItemBoss.
MultiColumnItemUID UID = kInvalidUID;
InterfacePtr
iHierarchy (pageItemUIDRef, UseDefaultIID()); InterfacePtr
iChild (iHierarchy-> QueryChild (0)); If (iChild &: GetClass (iChild) == kMultiColumnItemBoss)
{
multiColumnItemUID =: GetUID (iChild);
}
For the multiColumnItemUID of kFrameItemBoss.
MultiColumnItemUID UID = kInvalidUID;
InterfacePtr
iHierarchy (iTextFrameColumn, UseDefaultIID()); InterfacePtr
iParent (iHierarchy-> QueryParent()); If (iParent &: GetClass (iParent) == kMultiColumnItemBoss)
{
multiColumnItemUID =: GetUID (iParent);
}
-
Table header row gets cut off from view when the text block is resized
I'm designing a table that has a header row, 6 body rows and 5 columns. I want the header skewed to 20º and rotation type of needles from the same angle. Knows someone who worked with tables, it is not possible to rotate the text to this value via the parameters of the cell, but the job is to split the table into two blocks of text. The lower sash will be the body lines, but the Executive must have the header where it gets skewed to the specified angle. The text must be created in separate and then cut and paste frames in each column header and then it can be rotated.
The problem I have is when I try to drag the bottom of the text block to the top while the header remains visible, the header gets cropped view. The only way to prevent it from is Cup is I leave the first line in the frame, but then it gets skewed is not what I want. It seems that the block of text ignores the header still exists. The screenshot below has two tables. The top version is the one that I want to apply the effect to. The bottom has the effect, but his top line is a line of body (not a header).
I don't think that it is possible to have a heading row without at least a body line in the framework...
-
I just bought '100 DVD + R16X for professional' discs to Taiyo Yuden to use for the archiving of the files on my computer. There is a notice that came with the discs saying they are nine 1 x-16 x speed DVD + R (Compatible high-speed drive), and should I make sure my Player DVD is in line with the new 1 x-16 x recording standard.
I would like to know how can I determine if my drive is in line. The information I could get, is that the drive is a device of "ATAPI DVD W DH16w1P ATA."
Maybe if I can learn more about the manufacturer and the model I can find if the drive conforms to the standard.
I'd appreciate any help!
Hello tjjfitz,
Great choice in the media from Taiyo Yuden which is one of my favorites (Japan, Singapore, Taiwan) for their dyes they use! Regardless of speed, use the slowest speed to burn your backups, they will last longer and are less likely to contain errors. I burn my backups at 4 x which, Yes is slow, but the quality of combustion is what matters when you want to get more long shelf life of your discs. I also recommend Virbatum (Japan, Singapore, Taiwan) too! Hope this helps you. Let us know anyway. Make it a great day!
"And in the end the love you take, is equal to The Love You Make" (The Beatles last song from their latest album, Abbey Road.)
-
exportFile() on executives of related texts - strange behavior, how to fix?
Hello
What I need, is to export the blocks of text in the form of images, by using the exportFile() method and get the same appearance as in the document.
But if I manipulate with textframe somewhat, as resize it a bit, the picture, I got is not the same size as the selection: it has a certain margin.
El = element TextFrame
var file = new File(path + "el" + el.id + ".png"); app.pngExportPreferences.exportResolution = 72; app.pngExportPreferences.transparentBackground = true; el.exportFile(ExportFormat.PNG_FORMAT, file);
by example, if I check el.geometricBounds (or visibleBounds, these are the same) is [64, 104,88, 85, 336], which is (231 x 22).
But with exportFile, png with 231 x 29 size got.
How to get an accurate picture? Or how to match so I could crop later automatically?
[JS] PageItem Export in PNG: dimesion of the exported image differs from PageItem
-
For starters, I totally despise changes to the URL bar and the removal of the status bar. In order to stay with the latest version of Firefox, I try to recreate the look and feel better than I can.
I have already installed the extension of the State-4-Evar. The only thing left is to delete the status information and the URL target of the bar.
Y at - it none of the parameters of topic: config that will allow me to make these changes?
EDIT: The State information can be removed by activating / deactivating. status4evar.statusInUrlBar. always looking for a way to remove the URL target...
Copy the following code in userChrome.css below @namespace seems to remove the links that appear in the overview.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ .urlbar-textbox-container {color: inherit !important;} .urlbar-textbox-container-children {opacity: 1 !important;} .urlbar-over-link-box {opacity: 0 !important;}
See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
-
Wrap JS CS3 How to apply options for some executives of related texts
If you manually select a number of linked text frames, and then click wrap encompassing for example, it is applied to all selected items.
To do this in a script can be done without a loop in each selection?
For example:
var myNewGroup = app.selection
myNewGroup.textWrapPreferences.textWrapType = TextWrapTypes.NONE;
var myGroup = app.activeDocument.groups.add(myNewGroup);
This does not work, but if you have more than 1000 selected text blocks it takes awhile.
for (i=app.selection.length-1; i>=0; i--) {
app.selection[i].textWrapPreferences.textWrapType = TextWrapTypes.NONE;}
Any suggestions?
Cheers, John.
Yes, you are right...
You can not textFramePrefernces re-branded to the Group of objects. It's my fault.
I think that you need to loop through objects...
--
tomaxxi
-
How to write a SQL to get this information from the DD?
Hi, I have a requirement like this:
(1) we have a pattern with 100s of synonyms in the tables and views in the other 2 diagrams.
(2) 100 francs of paintings have CASE_ID + SEQ_NUM as primary key.
(3) SOME TABLES might have only CASE_ID as primary key.
(4) several dozen paintings have CASE_ID + a few other columns as a PRIMARY KEY.
I need a list of all the tables, the primary key is composed of (case_id + case_seq).
Problem with my method is, when I got out, I also have tables that the primary key column CASE_ID.
I don't need the paintings, including PK are EXACTLY CASE_ID + SEQ_NUM.
user12240205 wrote:
I need a list of all the tables, the primary key is composed of (case_id + case_seq).
SELECT c.owner,
c.table_name,
c.constraint_name
OF dba_constraints c,.
dba_cons_columns cc
WHERE c.constraint_type = 'P '.
AND cc.owner = c.owner
AND cc.table_name = c.table_name
AND cc.constraint_name = c.constraint_name
C.owner GROUP,
c.table_name,
c.constraint_name
HAVING COUNT (*) = 2
AND MIN (cc.column_name) = "CASE_ID".
AND MAX (cc.column_name) = "SEQ_NUM.
ORDER BY c.owner,
c.table_name,
c.constraint_name
/
SY.
-
for - loop in all managers of related texts (cs4 jsx)
var app.activeDocument = docRef;
for (var num = 0; num < docRef.textFrame.length; num ++) {}
alert (docRef.textFrames [num]);
}
I would like for all the blocks of text in a document to experiment with what properties return information. I have a simple test document with as three different text blocks and I want information on each collection. This loop for doesn't seem to work though, and I can't quite wrap my head around how work the textFrame objects and linked text frames.
Thanks for the help!
executives of related texts = a collection of linked text frames
textFrame = a single textFrame, example frames of texts linked [1] made reference to the second textFrame
Try this
var docRef = app.activeDocument; for (var num=0; num
-
Tecra R840-109 - alert HDD - unable to get disk information
I turned on my Toshiba Tecra R840-109 and everything looks that the factory settings have been restored, but I still have my files on the hard disk in the users folder (where the system has also built a temporary user I'm connected now, I guess).
At the opening, the computer asked me to do the things you do when you get a new computer (for example accept the license, install browsers, register fingerprints, if applicable etc.). In addition, it showed an error, alert HDD/SDD saying "Could not get the information from the disk, cannot use the alert function".
Is there a way to solve this problem, that is, to apply the previous (original) user?
An obvious solution would probably be to restore the system, but I don't have a backup set to the top (which I will fix as soon as this problem will be solved). Tried to reboot, nothing has changed.
Information on the mobile phone: http://www.toshiba.co.il/en/disconti...ecra-r840-109/
Any help is appreciated!
Hello
To be honest situation described sounds pretty confusing and not logical for me.
If you do not have recovery (DVD or USB) media create using preinstalled Toshiba recovery media creator tool.
After this use this bootable media and reinstalling the recovery image so you will have 'presets' again. After the installation of clean operating system, it is not possible to have the old data stored on the HARD drive, not on the C partition.
The fact is that before the installation of recovery begins any HARD drive will be deleted and formatted.Sorry if I got you. If you have any concrete and clear questions do not hesitate to ask.
-
How to read information from the smart phone
Hello
I want to get the information from the BB Phone, as the OS version, model munber, IMEI and so on.
can someone help me?
Thank you
String imei = GPRSInfo.imeiToString (GPRSInfo.getIMEI (), false);
String deviceId = DeviceInfo.getDeviceId)
String deviceName = DeviceInfo.getDeviceName)
Soft string = DeviceInfo.getSoftwareVersion ();
Maybe you are looking for
-
Satellite A300 - 1 DG: where to find drivers for Win 7 x 64
Hello I have Windows 7 x 64 by MSDN. Now I'm looking for drivers.Where can I find them? Toshiba Satellite A300-1 DGModel No. PSAJ4E
-
Dial-up access hangs after the authenticated message
switched freezes after authenticated message or register your computer on the network.using windows xpISP contacted all my settings are correct and registered with themWhat is the fix for this problem. help certainly appreciated
-
How to obtain the latest updates to Microsoft?
Windows updates All about know how to get the last upadate of Mircrosoft. I go to the site and it is not found on my desk that I can find it on my lap top
-
iastor.sys - address 828490B 8 physical memory base to @8280B 000, Date Stamp 48054343 - Crash Dump, dump - the disk of 100 I can work only in Mode without failure, but I can't print or scan that I need to do. Someone can help me.
-
After successfully using walkman days, today I woke up, turned on my compact z3 and suddenly got 3 errors "walkman stopped because of an error" and of course, it no longer works. I restarted the phone several times. Same question. My model is D5803 r