[ANN] Xtrema Unicode RTF Text Member, alpha version
Xtrema Unicode RTF Text Member, alpha version.
For Director 8.5 and above, windows NT4, 98 and above.
http://xtrema.rtr.gr/cDown/
Features of the final release (progress state)
Unicode (utf-16) support. (done)
Rich Text Format support. (done)
East European + Asian + RTL Language support. (done)
Embedded Images. (done)
Common shortcuts / controls :
http://msdn2.microsoft.com/en-us/library/ms651760.aspx
(done)
Mouse Wheel support. (done)
Drag & Drop functionality. (drag only)
Copy to / paste from Clipboard. (done)
Insert rtf data into rtf selection. (not enabled)
Full character/line position/dimension (rect) info. (done)
Event driven operation (e.g. on xKeyDown/up - with unicode
key info, plus
mouseWheel) (done)
Support for virtual sprites (one member, many sprites) (not
tested)
Support for memberless objects. (not tested)
Extended (object driven) text formatting support. (-)
Rich Text, or Plain Text operation. (rich text only)
Character masking (for password entry) (not enabled)
Horizontal / Vertical scrolling (not enabled, auto only)
Zooming (not enabled)
Hyperlink support (-)
Auto stretching to fit Director's stage zoom (done)
Ink support (blend only)
Generate 32 bit image object (not enabled)
This member has been created from a personal wish list based
on years of
experience with director's text objects.
If something else comes to mind, or if you wish to join the
beta testers
list, please feel free to contact xtrema at rtr gr.
Regargs,
- alchemist.
Xtrema Unicode RTF Text Member, alpha version.
For Director 8.5 and above, windows NT4, 98 and above.
http://xtrema.rtr.gr/cDown/
Features of the final release (progress state)
Unicode (utf-16) support. (done)
Rich Text Format support. (done)
East European + Asian + RTL Language support. (done)
Embedded Images. (done)
Common shortcuts / controls :
http://msdn2.microsoft.com/en-us/library/ms651760.aspx
(done)
Mouse Wheel support. (done)
Drag & Drop functionality. (drag only)
Copy to / paste from Clipboard. (done)
Insert rtf data into rtf selection. (not enabled)
Full character/line position/dimension (rect) info. (done)
Event driven operation (e.g. on xKeyDown/up - with unicode
key info, plus
mouseWheel) (done)
Support for virtual sprites (one member, many sprites) (not
tested)
Support for memberless objects. (not tested)
Extended (object driven) text formatting support. (-)
Rich Text, or Plain Text operation. (rich text only)
Character masking (for password entry) (not enabled)
Horizontal / Vertical scrolling (not enabled, auto only)
Zooming (not enabled)
Hyperlink support (-)
Auto stretching to fit Director's stage zoom (done)
Ink support (blend only)
Generate 32 bit image object (not enabled)
This member has been created from a personal wish list based
on years of
experience with director's text objects.
If something else comes to mind, or if you wish to join the
beta testers
list, please feel free to contact xtrema at rtr gr.
Regargs,
- alchemist.
Similar Messages
-
Opacity level changing when exporting text with alpha
Hello,
I am hoping someone can shed some light on what is happening with my opacity levels when exporting text with an alpha. I have animated text where some words are black at 50% opacity and some words are white at full opacity. They are on a textured background. I need to give the other editors a version of the text married to the background and one that is just text with an alpha. When I export it and bring it into Premiere, the "married" version looks fine, but the black in the version of the text with alpha appears more transparent. I can fix this by changing the blend mode to Hard Light or Luminosity, but this alters the color of the white text slightly (and I should note that the blend mode in AE was normal). I can of course work around this by exporting my black and white text separately, but I was hoping someone might know why this is happening.
I am working on AE CC (ver12) and Premiere CC (ver7)
Thank you!Rick, I am judging visually.
I have since taken the cue from Mylenium, and I think the problem has to do with the fact that AE's default opacity is not linear and Premiere's is. When I change the sequence settings of Premiere and uncheck "Composite in Linear Color" the blacks of my clips match. Similarly when I change my Project Settings in AE and check "Linearize Working Space" the blacks appear lighter as they did when with the text only clip in Premiere. Since I am working with other editors that are using Premiere, I assume I should change the settings in After Effects to match Premiere (linear). Unless there is any reason I shouldn't do that?
Thank you,
-Keri -
Text Member Director bug?
Hi there,
Whilst trying to track down what I though was my own bug, I
discovered that
with Director 8.5's text member charPosToLoc() function I
seem to have found
a strange anomaly....
1. Create a text member. Set framing to Adjust To Fit and
wordWrap to on.
2. Starting with an empty member type text into it until the
first line, is
almost filled.
3. Type a row of empty space chars (not they do not force the
text member to
return to the second line).
4. Put the member.charPosToLoc(member.char.count).
5. You will observe that the resulting loc.locH is way beyond
the right hand
edge of the text member's width!
Can anyone replicate, or suggest a work around? It's a real
problem for one
aspect of my Chatroom project.
Thanks experts!
Richard Smith"Chunick" <[email protected]> wrote in
message
news:evqp6l$nq4$[email protected]..
> I'm also working on a chat, but using mx2004... and it
still occurs in
> mx2004
> as well. Seems to be a bug that has carried over to the
newest version.
> Can I
> ask the context to which you're needing to set the text
member to adjust
> to fit
> with wordwrap?... it seems like you are trying to set up
chat bubbles or
> something.
Yes, you are quite right, very observant! :)
I had a bug with my smiley placement within the bubbles, but
that work
around fixed it. Ain't smiley placement a pain ? ;)
Cheers, and good luck with your chatroom!
Richard -
Copy/Paste of RTF text from Java to Word
Hiya
I am trying to transfer info from Java to MS-Word via the Clipboard, I have had a look and a play with the code given in the tutorial at
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html
But even thought it is implied that the copy and paste of the RTF text will paste in styled text, it does not. Just simple text arrives.
Any hints, links, examples or acts of god to help a desperate programmer would be appreciated.
thanks and cya
StormSorry it took me this long (over a year!) to get back to you all, but thanks for the info.
In that time due to ugrades the above URL has changed to
http://java.sun.com/j2se/1.4.2/docs/guide/swing/1.4/dnd.html
and will prob oon change again to version 1.5
Thanks again (deposited Duke$)
Efran -
Find Line Number in Text Member
I would like to drop in a line of text after a specific phrase in a text member. To find the right place to drop the text, I must first determine the line number the specific phrase text is located. Now, I can use a REPEAT to walk through each line until it is found, but there must be a more elegant way. The code "Offset" is great for finding the first character number of the specific phrase, but I don't know how to glean the line number from that.
Currently this is how I do it...
repeat with xLineCount = 1 to 100
if textDoc.line[xLineCount] contains "<specific text phrase>" then
put RETURN & RETURN & "<new text pasted>" after textDoc.line[xLineCount]
exit repeat
end if
end repeat
Can anyone give me a more elegant approach this?A more elegant approach might be to use a regular expression, but I'm not sure I understand your requirements well enough to make a sensible recommendation.
You could try the following JavaScript handler and invoke it like:
tMember.text = jsReplace(tMember.text, "<specific text phrase>", "<specific text phrase>" & RETURN & RETURN & "<new text pasted>")
function jsReplace(inStr, strFind, strReplace){
// error check input
if(typeof(inStr) != "string") { return inStr; }
if(typeof(strFind) != "string") { return inStr; }
if(typeof(strReplace) != "string") { return inStr; }
// search-and-replace
re = new RegExp(strFind, "g");
return inStr.replace(re, strReplace);
However, this will place the pasted text immediately after the search phrase and not at the end of the line. It is possible to do this with a regular expression, but I'd have to dust off my copy of Friedl's "Mastering Regular Expressions" to craft it for you and I don't have either the time or inclination at present. -
About converting a text member to a list
Hi there everyone!
I'm trying to convert a prepared text member to a property
list.
the text cast member:
[#boxes:[#b0: [#rect: rect(61, 392, 695,
465)],#b1:[#rect:rect(501,358,688,460)],#b3:[#rect:rect(99,415,199,493)]],#points:[#p0:[# loc:point(677,428)],#p1:[#loc:point(92,397)]]
the code I tried:
a = member("walkable").text
dWalkable = value(a)
put dWalkable
but the result is always : <VOID>
how can I convert the text cast member to a property list?The reason you are getting void is because after converting
it from a
string, what you have left is not a properly formatted list.
I think
you just need to add a closing square bracket at the end and
then it
should work. -
How to make a copy of DefaultStyledDocument Object for RTF text ?
Hi All,
In my application, I need to copy RTF text from Org_Default_Styled_Document to New_Default_Styled_Document (both are independent objects.)
For this I wrote the below method :
public DefaultStyledDocument copyRTFStyledDocument(DefaultStyledDocument Org_Default_Styled_Document)
DefaultStyledDocument New_Default_Styled_Document = null;
try
// writing RTF byte[] to output stream.
ByteArrayOutputStream bOData = new ByteArrayOutputStream();
rtfKitEditor.write(bOData, Org_Default_Styled_Document, 0, Org_Default_Styled_Document.getLength());
// reading RTF byte[] from input stream.
ByteArrayInputStream bIData = new ByteArrayInputStream(bOData.toByteArray());
New_Default_Styled_Document = new DefaultStyledDocument();
rtfKitEditor.read(bIData, New_Default_Styled_Document, 0);
} catch(BadLocationException e) {
e.printStackTrace();
catch(IOException e) {
e.printStackTrace();
return New_Default_Styled_Document;
}I am able to see an extra 'enter' character (i.e, "\n") added to New_Default_Styled_Document.
I tried to figure out the problem by digging API classes like RTFEditorKit.java and RTFGenerator.java, I observed that an extra 'enter' character is adding at the below method of RTFGenerator.java
public void writeRTFTrailer()
throws IOException
writeEndgroup();
writeLineBreak();
public void writeLineBreak()
throws IOException
writeRawString("\n");
afterKeyword = false;
}I used
New_Default_Styled_Document.remove(Org_Default_Styled_Document_Length, 1); to remove the extra 'enter character from New_Default_Styled_Document every time. Its workaround only.
Can any one please help me how to make a new copy / clone of DefaultStyledDocument ? Is there any alternate solution which does not add any extra character when we make a copy of DefaultStyledDocument ?
Its very urgent. I am trying a lot.
Thanks in advance
Satya.You will need to define an Organization hierarchy.
1. Define your company as a Business Group and define the 3 child companies as Organizations (HR Organizations).
2. Define Organization Hierarchy with 3 child organizations as child of the Business Group. You can further add organizations as childs to those three in the hierarchy.
3. Define 3 security profiles (Security > Profile) marking View Employees / Contingent workers / Applications / Contacts as restricted. Click in the Organization Security tab. Select the option of Secure by Organization hierarchy option. Click in Organization hierarchy and select the one defined in step 2. Click in top Organization and select Company 1 / 2 /3 for each of the Security Profile. Check the box Include Top Organization. Also select the check box Restrict on Individual assignments option. Save the security profile(s).
4. Define 3 HR Responsibilities (e.g. Company 1 HR, Company 2 HR, Company 3 HR). Using system profile HR:Security Profile, attach corresponding security profile to each of the responsibilities. Profile value of HR: Business Group is same for all the responsibilities.
5. Run the Concurrent Program "Security List Maintenance" for each of the security profile.
From now, One responsibility can not view data from another Organization and its child Orgs. -
I have created a little application that gathers data from various text boxes and then combines the data into a formatted richTextBox. A person using the tool asked if I could then add a button that would allow that text (with formatting) to be copied
and pasted into an Outlook Email. When I do this, I can get the text into an email, but I either strip out the formatting or I get all the RTF encoding tags to come along with it.
I have tested to see that the copy of the data from the richTextBox has indeed made it to the clipboard correctly. This has been verified by the fact that I can manually press "ctrl" + "v" and I can past the text with proper
formatting into the mail body.
I do know that I can brute force things by trying to manually wrap HTML tags around my textBox fields and then pipe that into an HTMLBody property. In fact I can get a lot of things to work with the HTMLBody property, but while it is nice that will
work, I feel that I must be missing something really simple while trying to work with RTF.
I currently am pasting (using the Clipboard.GetText(TestDataFormat.RTF)) the RTF data into the Body property of the mail item. This is bringing in all the RTF encoding tags. I have tried to paste this directly into the RTFBody of the mail item,
yet an execption gets thrown when executed. Oddly, though, if I change RTFBody to HTMLBody, I do not get the exception, but I still have the RTF encoding tags in it. Though if I feed the HTMLBody property straight, HTML text with the encoding tags,
it will render properly.
This has me confused then why if I feed HTMLBody HTML text with the encoding tags that it will render, but if I try and do the same for RTFBody and feed it RTF text with encoding tags it still throws an exception. Any help in the matter would be greatly
appreciated. I have included the code snippet below for sending the richTextBox information to the clipboard and then attempting to retrieve it and paste it into an Outlook email.
Thanks for the help.
Some pertinent information:
Blend for Visual Studio 2015 CTP6 (I switched from VS2012 as intellisense was added to Blend in 2015)
Because of this Systems.Windows.Forms is not in use
private void buttonEmail_Click(object sender, RoutedEventArgs e)
//Copy richTextBox information to Clipboard
Clipboard.Clear();
richTextBox.SelectAll();
richTextBox.Copy();
//Get current date to add to email subject line
DateTime myNewDate = new DateTime();
myNewDate = DateTime.Now;
//Create Email
Outlook.Application myNewApplication = new Outlook.Application();
Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
myNewMailIoI.To = " "; //An attempt to ensure that the focus moves down to the body field
myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
//Pasting data into body of email
myNewMailIoI.Body = Clipboard.GetText(TextDataFormat.Rtf); //This will past the text with encoding tags into email
//If this section is uncommented, it will add a properly formatted HTML text to the email
//myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
//myNewMailIoI.HTMLBody = "<p>This stinks!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>different font and color</p>";
myNewMailIoI.Display(); //Allow for window to be minimized
myNewMailIoI.Display(true);Ok, I found the solution. Part of the issue was caused by the confusion of the HTML body property acting as a text encoder for HTML text when a string is passed in vs the RTF Body property needing to have a plain text file taken and encoded into a
byte stream. Even though the RTF text is in readable text (albeit with the RTF Encoding Tags) it needs to be reencoded into a series of bytes.
This is where I failed to understand the previous answers. I knew that RTF Body needed to have a array of bytes, and the previous answers seemed to indicate that the data in the clipboard was already in this byte format (this may have just been my
misunderstanding) and that I needed to somehow take this byte array and do something with it. My misunderstanding was that all the methods for getting values from the clipboard returned strings and not bytes.
after some digging last night and with the few hints that were offered before, I came across a post on CodeProject (apparently I cannot post links, so I will try and include this so that you can find the postcodeproject(DOTCOM)/Questions/766917/How-to-convert-richtextbox-output-into-bytearray).
This showed that I needed to take the raw, RTF text with its RTF encoding tags from the clipboard and and encode it to a byte array and then pass this into the RTF Body property. Included below is the final code such that I hope that it helps some other
person as there seem to be a lot of searches for this on the web, but not a lot of direct answers.
using System.Text;
using Outlook = Microsoft.Office.Interop.Outlook;
private void buttonEmail_Click(object sender, RoutedEventArgs e)
//Copy richTextBox information to Clipboard
Clipboard.Clear();
richTextBox.SelectAll();
richTextBox.Copy();
//Get current date to add to email subject line
DateTime myNewDate = new DateTime();
myNewDate = DateTime.Now;
//Create Email
Outlook.Application myNewApplication = new Outlook.Application();
Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
//Add Subject
myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
//Set Body Format to RTF
myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
//Converting RAW RTF data from string to bytes. THIS IS THE FIX THAT WAS NEEDED TO MAKE IT WORK
string myNewText = Clipboard.GetText(TextDataFormat.Rtf);
byte[] myNewRtfBytes = Encoding.UTF8.GetBytes(myNewText); //This line cost me way too many hours of lost sleep!!!
//Inserting RTF bytes into RTFBody property
myNewMailIoI.RTFBody = myNewRtfBytes;
myNewMailIoI.Display(); //Displays the newlycreated email
//If this section is uncommented, it will add a properly formatted HTML text to the email
//myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
//myNewMailIoI.HTMLBody = "<p>This works for the HTMLbody property!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>this renders properly</p>"; -
Get Rect of a line of text in text member
hello everyone
I need to get the top left right and bottom coordinates in
pixels around a
line of text in the text member where the mouse clicks.
I know how to get the right and left positions. But top and
botton is
difficult.
Any ideas and workarounds will be welcome.
thanks
ahmedHere are two links to movie which use the rect of a given
line in a text member:
http://nonlinear.openspark.com/tips/text/hilitetext/
http://nonlinear.openspark.com/tips/text/multiselect/ -
RTF text with background colour - formatting lost in editable RTF export
Hi
I have designed a report in CR2008 using XSD datasource.
I have a field which returns a RTF text. The text comes out correctly when I run the report.
Scenario:
1.Background colour (eg Yellow) has been applied to the field
2.RTF text contains paragraph breaks
Result
The background appears for each paragraph and where there a para break, there is white space. In other words, I want the background colour to appear for the entire field. Right now, it appears odd because I have white spaces between each paragraph with the background colour for each paragraph
Example:
Text is as below (with RTF coding)
In a bad mood? Don't worry according to research, it's good for you.
An Australian psychology expert who has been studying emotions has found being grumpy makes us think more clearly.
In contrast to those annoying happy types, miserable people are better at decision making and less gullible, his experiments showed.
While cheerfulness fosters creativity, gloominess breeds attentiveness and careful thinking, Professor Joe Forgas told Australian Science Magazine.
My export type is Editable RTF. The background colour is maintained when you choose Word for Windows option or PDF (but this is not what I want to use in the report). Can the background be maintained for Editable RTF? Is there a work around for this problem?
ThanksPlease re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Can I use the swing.text.rtf library to convert RTF text into plain text? If so, what's a quick way to do so? What I need to do is parse some given string of RTF code to see if there is any actual text inside (other than just RTF commands)
I wanted to use PDFFilter as referenced in PDFParser but apparently that class does not existsorry for resing the topic but I have almost exact same problem. However when I tested this solution it doesnt seem to work so I figured you may tell me what am I doing wrong. I have the following code
import java.io.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.text.rtf.*;
public class rtf2text {
public static void main(String args[]) {
try {
StringReader sr = new StringReader("{\\lang1033\\langfe1049\\langnp1033 text \\par \\par \\par Some table \\par \\par \\par}");
JEditorPane editor = new JEditorPane();
RTFEditorKit kit = new RTFEditorKit();
editor.setEditorKit(kit);
javax.swing.text.Document doc = editor.getDocument();
kit.read(sr, doc, 0);
String s = doc.getText(0, doc.getLength());
System.out.println("sAttachment\n >" + s + "<");
catch (Exception ex) {
ex.printStackTrace();
}and it doesnt return anything i.e. s="". What am doing wrong? -
Reading a txt file into a text member with BuddyAPI.
Hi I have this:
mFile =_movie.path &"TheTEXT.txt"
theFile = baShell("open", mFile, "", "", "normal")
which opens a txt file in note pad. I don't have an idea on how to do this with API to be opened into a txt member.
Thanks
BrianYou don't need Buddy API to import text (which is what you appear to be trying to do) - just set the filename of an existing (or new) text member to the file:
-- tTextMember = _movie.newMember(#text)
tTextMember.filename = _movie.path & "TheText.txt"
tText = tTextMember.text -
Vulnerability of alpha version software
Hi all,
These days we see many vulnerabilities of alpha version software such as CSCur50192(https://tools.cisco.com/bugsearch/bug/CSCur50192).
And that kind of pages mention Known Affected Releases are X8.5 Alpha1 or like that.
But most of them don't specify Known Affected Releases include prior to those versions or not.
Should we pay attention to those bugs as with other bugs of formal software versions?
Regards,
KotaroEvery time that you buy anything from the Mac App Store or the iTunes stores on a Mac or iOS device, you recieve an emailed receipt for the purchase. Every receipt has a direct link to the Terms of Use of the content and the stores from which you make the purchases. Throughout those Terms you are informed that Apple is not responcible for the content that you purchase that you should guard it and back it up.
http://www.apple.com/legal/internet-services/itunes/us/terms.html -
Hi ,
can any one tell me what will be the RTF Text for Verdana .
Ive created a custom font Verdana, for the purpose of form printingHi Sridhar,
Which Arabic font you are using?
Yes it is necessary to upload a font.
RTF text for Arabic is
\fbidi\fcharset &&& Miriam
Regards,
Suresh -
Pages 5.0 missing connecting text boxes/Old version not in Time Capsule
I have upgraded to Mavericks ... also Pages 5.0 ... I am prepping my year end documents and when opening the docs, notice that I have to UPGRADE the document to work with this version. Once in, I see there are many features that are broken. For me, the connected text boxes are the most disturbing problem. I wanted to open the doc with Pages 4, but that is not possible. The file has been changed. I went into Time Capsule to find the older version so that I could restore it and open it with the older version of Pages, but it's been deleted from history .... really? ... my documents have been destroyed, and the history wiped out. This is why I switced from Windows. Deep breath ... is there some help out there?
I've tried it a couple of times now, albeit with test documents I made specially. Here are the steps again...
Open it in Pages 5 and go to File > Revert to > Browse all versions...
Use the Time Machine interface to restore the version before you opened in Pages 5. You'll get a repeat of the warning about how your document is going to be messed up, but you can OK that.
Close the document.
You should now be able to open the same document in Pages '09.
Maybe you are looking for
-
Why can I hear sound on the track coming through but when I hit record it turns red but doesn't record any sound?
-
Best options for mass pricing load/update?
Hi folks, I need to design an interface to load PR00 pricing condition data into SAP from a 3rd party (custom) system. The interface will need to support (1) creating brand new condition records, (2) changing existing condition records (example i: p
-
-I have downloaded music using Desktop Manager. Music I have downloaded to my 8310 from itune files show up when I open Media-Music. Folders(using Desktop Manager) with music, only show up when I click EXPLORE. How do I get the music on these folders
-
Enhancment to avoid 2 step check printing
Does anyone know when they play to allow checks to not need the 2 step process? Same goes w/ PackSlip and PickSlip, i think they need the 2 step approach.
-
my system preference crash, how can i fix this?