-
-
Notifications
You must be signed in to change notification settings - Fork 26
USER.CM location for .bravo files #2144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is @pmcjones strategy? If not specified as a property in the OPENTEXTSTREAM/TEDIT calll, this looks for a USER.CM in the directory of the bravo file, if not there searches for USER.CM in the user's DIRECTORIES, if not there, asks in the promptwindow. |
My strategy was inferior: I hardwired fonts loosely based on the standard non-programmer's disk. |
It would be simple to include a default set of paragraph and font properties when the USER.CM file for a given bravo file is unknown or can't be found. Just a Lisp variable initialized to a simple alist. For example, here are two candidates, one parsed from the user.manual file that comes with the 3-Lisp files and the other is the user.cm that we used for the IDL files. They appear to differ only in the font assignments. Is there another one that would be a better default? ((ParagraphLeading 12) ((ParagraphLeading 12) |
if we're running HCFILES to do a bulk transform of .bravo to PDF conversion, asking the user for a "user.cm" file isn't useful. I think if there isn't a user.cm or some other renaming that we can hint at, picking the same font choices as Paul did will at least aid in reviewing the comparison between Paul's bravo converter to going through TEdit. |
I made the USER.CM be a property that you can pass in to TEDIT or the OPENSTREAM call in HCFILES. You can pass an alist or a file name.
I think the protocol should be that it first looks for a USER.CM in the bravo file's directory (perhaps confirms in the prompt when it finds it?).
If it doesn't find it, and you pass in a property, then silently use the property.
Otherwise the sequence: search DIRECTORIES, ask the user for a name, go to the default.
… On May 10, 2025, at 11:27 AM, Larry Masinter ***@***.***> wrote:
masinter
left a comment
(Interlisp/medley#2144)
<#2144 (comment)>
if we're running HCFILES to do a bulk transform of .bravo to PDF conversion, asking the user for a "user.cm" file isn't useful. I think if there isn't a user.cm or some other renaming that we can hint at, picking the same font choices as Paul did will at least aid in reviewing the comparison between Paul's bravo converter to going through TEdit.
—
Reply to this email directly, view it on GitHub <#2144 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJJ3P3QUOK32YVZRWLT25ZAJTAVCNFSM6AAAAAB4ZXLMS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNRZGA3TQNBZHE>.
You are receiving this because you commented.
|
Here's the case statement in my code that handles fonts:
|
make sure the USER.CM location is at least as good as the one in @pmcjones 's bravo converter in finding an appropriate user.cm for .bravo files in the CHM PARC Archives files. I will raise reviewing that in a separate issue.
Originally posted by @masinter in #2119 (comment)
The text was updated successfully, but these errors were encountered: