Jump to content

Mirrored or Flipped Text


This topic is 2764 days old. Please don't post here. Open a new topic instead.

Recommended Posts

For a solution I need to horizontally flip or mirror text. I have a card printer on which I print transparent stickers. These stickers will be mounted on the inside of a window, so in order to be read from the outside the text needs to be mirrored (or flipped, whatever term you prefer). I thought of making a "Reverse" script and use a custom made font that has all characters flipped (eg. http://abc-font.com/font.php?font=Arial Mirror). But this seems a little complex...

Link to comment
Share on other sites

You can create a custom function to reverse the field called 'string' similar to:

Mirror ( text )

Let ( 
char = Right ( text ; 1 ) 
;
char & 
Case (
  Length ( text ) > 1 ;
   Mirror ( Left ( text ; Length ( text ) - 1 ) ) 
  ) // end case
) // end let

Then create a calculation ( result is text ) called cReverse as:

Mirror ( string )

 

Edited by LaRetta
  • Like 1
Link to comment
Share on other sites

I thought of making a "Reverse" script and use a custom made font that has all characters flipped (eg. http://abc-font.com/font.php?font=Arial Mirror). But this seems a little complex...

​I don't think you will anything less complex than that. The only other solution I can think of would involve "printing" to a graphic fie, then using some graphic application to flip the result. This is not only more complicated, but also - if not done correctly - could reduce the quality of the final printout.

 

Note that if a sticker can span more than one line, you must separate them with a hard return and reverse each one of them separately.

Link to comment
Share on other sites

Would be a nice feature if Filemaker had a menu function that allows 'flip horizontal' and 'flip vertical', next to the 'Rotate' feature that is already there.

​Come to think of it, that's actually possible, using SVG in a web viewer.

 FlipSVG.fp7

However, it needs more work to get it to align properly, and I am not sure if there is a good way to print this.

Link to comment
Share on other sites

8-9 years ago I posted the question and was given a mirror font; not sure I could find it now.  But searching 'mirror font' gives several fonts.  The problem I found was that they never looked right plus I had to make sure that font was installed on everyone's system which was not possible.

Nice idea, Comment!

Link to comment
Share on other sites

I had to make sure that font was installed on everyone's system

I guess that wouldn't be a problem here: you only need to make sure it's installed on the (one?) system that has the printer that can print transparent stickers.

Link to comment
Share on other sites

  • 2 weeks later...

For a solution I need to horizontally flip or mirror text. I have a card printer on which I print transparent stickers. These stickers will be mounted on the inside of a window, so in order to be read from the outside the text needs to be mirrored (or flipped, whatever term you prefer).

You can "print" a pdf to the FM-temp directory, edit it via CLI/Apple Script using sips and either print the pdf directly or import it back into a container and print that (container) from FileMaker.

Make sense?

 

Ah, it's meant for use on a Mac

  • Like 1
Link to comment
Share on other sites

You can "print" a pdf to the FM-temp directory, edit it via CLI/Apple Script using sips

​I thought that would be interesting to try, so I did - using the script found here:
http://www.macosxautomation.com/applescript/imageevents/02.html

This did flip the text, but not before converting it to a bit-mapped image with fixed resolution (exactly what I warned about in my first post).  It also changed the size of the text - see the screen shot comparing the before and after (note that both are zoomed by the same factor).

 

compare.png

  • Like 1
Link to comment
Share on other sites

Not sure why you used "Image Events" instead of sips (and I also don't know if and how Image Events uses sips, but nevermind ;o)

While I agree that it gets pixelated, I can't get your result…

 

FlipBeforeAndAfter.png

Link to comment
Share on other sites

​Well, what is sips?

​Part of every Mac OS X

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sips.1.html

As it seems there, "Image Events" can use sips:

"This tool is used to query or modify raster image files and ColorSync ICC profiles. Its functionality can also be used through the "Image Events" AppleScript suite."

Edited by pixi
Additional info
Link to comment
Share on other sites

​Part of every Mac OS X

​Yes, I know that. I meant, what is the nature of sips? AFAIK, both sips (the command-line utility) and Image Events provide an interface to the Core Image framework (or more specifically, to the "Scriptable Image Processing Server" (SIPS) service) . And since Image Events is a scriptable, faceless application designed specifically to be used by AppleScript, it makes more sense to me to use it directly, rather than calling upon a shell script to call upon a command line utility to execute the same action.

Link to comment
Share on other sites

I'd be interested to know why your result using Image Events is so different to mine using CLI?

Link to comment
Share on other sites

Not sure if the Font type plays any role here but I used Georgia, 110 pt, and have even less pixelation than with your pdf (and a smaller font?).

Would you try it with my file? ;o)

 

BeforeAfter_comment.png

BeforeAfter_pixi.png

 

FlipTest.zip

Link to comment
Share on other sites

Uhm.. what exactly are we testing here and for what purpose?

​Sorry if I don't get what you mean, now!

You asked:

What do you get when you try it with mine?

and I showed you my output.

 

Link to comment
Share on other sites

So fliptest.zip just shows a regular font Georgia at 110 pt in an fmp12 file, nothing else.  Did you mean to attach a different file by chance?  :-)

Edited by LaRetta
Link to comment
Share on other sites

The zip above contains a fmp12 as the ase for further tests (or to show my testing source) and 4 pdf showing the results of my tests.

Link to comment
Share on other sites

 

​Sorry if I don't get what you mean, now!

I was referring to this:

Would you try it with my file?

​What do you expect to learn from this? FWIW, my method increases the size of your PDF too. I don't know the reason, but suppose I did, how would this be useful to anyone?

Link to comment
Share on other sites

This topic is 2764 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.