Skip to content
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

Script improvements #279

Merged
merged 17 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions data/fonts/options.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ Hidden = Yes
[Crimson Pro]
Hinting = Normal

[Noto Color Emoji]
Hidden = Yes

[Noto Sans]
Hinting = Light
Default = Yes

[Vollkorn]
Hinting = Normal

[Noto Color Emoji]
Hidden = Yes

[Source Sans 3]
Hidden = Yes

Expand All @@ -37,3 +34,6 @@ Alias = Source Sans 3
Name = Times New Roman
Alias = Crimson Pro
Hidden = Yes

[Vollkorn]
Hinting = Normal
1 change: 1 addition & 0 deletions docs/xml/modules/classes/storagedevice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
</fields>
<types>
<constants lookup="DEVICE">
<const name="BOOKMARK">This marker indicates that the presented volume is a bookmark and not a device name.</const>
<const name="COMPACT_DISC">Compact disc style device</const>
<const name="FIXED">Catch-all for fixed media devices that are not directly identifiable.</const>
<const name="FLOPPY_DISK">Floppy disk style device</const>
Expand Down
9 changes: 5 additions & 4 deletions docs/xml/modules/core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,9 @@ GetField(Object, FID_Y|TLONG, &amp;y);
<param type="CLASSID *" name="SubClass">Optional argument that can refer to a variable that will store the resulting sub-class ID (if the result is a base-class, this variable will receive a value of zero).</param>
</input>
<description>
<p>This function examines the relationship between file data and installed classes. It allows for instance, a JPEG file to be identified as a datatype of the <class name="Picture">Picture</class> class, or an MP3 file to be identified as a datatype of the <class name="Sound">Sound</class> class.</p>
<p>The method involves analysing the <code>Path</code>'s file extension and comparing it to the supported extensions of all available classes. If a class supports the file extension then the ID of that class will be returned. If the file extension is not listed in the class dictionary or if it is listed more than once, the first 80 bytes of the file's data will be loaded and checked against classes that can match against file header information. If a match is found, the ID of the matching class will be returned.</p>
<p>This function returns an error code of <code>ERR::Search</code> in the event that a suitable class is not available to match against the given file.</p>
<p>This function examines the relationship between file data and Parasol classes. For instance, a JPEG file would be identified as a datatype of the <class name="Picture">Picture</class> class. An MP3 file would be identified as a datatype of the <class name="Sound">Sound</class> class.</p>
<p>The method involves analysing the <code>Path</code>'s file extension and comparing it to the supported extensions of all available classes. If a class supports the file extension, the ID of that class will be returned. If the file extension is not listed in the class dictionary or if it is listed more than once, the first 80 bytes of the file's data will be loaded and checked against classes that can match against file header information. If a match is found, the ID of the matching class will be returned.</p>
<p>The <code>ERR::Search</code> code is returned if a suitable class does not match the targeted file.</p>
</description>
<result type="ERR">
<error code="Okay">Operation successful.</error>
Expand Down Expand Up @@ -1291,7 +1291,7 @@ parasol:pictures/ parasol:documents parasol:documents (Existing documents
<param type="CSTRING *" name="Value">The discovered string value is returned here if found.</param>
</input>
<description>
<p>Call ReadInfoTag() to retrieve the string value associated with a named tag in a <st>FileInfo</st> structure. The tag must have been added with <function>AddInfoTag</function> or <code>ERR::NotFound</code> will be returned.</p>
<p>ReadInfoTag() will read the value of a named tag in a <st>FileInfo</st> structure. The tag must have been added with <function>AddInfoTag</function> or <code>ERR::NotFound</code> will be returned.</p>
</description>
<result type="ERR">
<error code="Okay">Operation successful.</error>
Expand Down Expand Up @@ -2121,6 +2121,7 @@ SetField(Object, FID_Statement|TSTR, "string");
</constants>

<constants lookup="DEVICE">
<const name="BOOKMARK">This marker indicates that the presented volume is a bookmark and not a device name.</const>
<const name="COMPACT_DISC">Compact disc style device</const>
<const name="FIXED">Catch-all for fixed media devices that are not directly identifiable.</const>
<const name="FLOPPY_DISK">Floppy disk style device</const>
Expand Down
2 changes: 1 addition & 1 deletion examples/vue.fluid
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function displayImage(Path)
glStats = { width = pic.bitmap.width, height = pic.bitmap.height }
end,
function(Exception)
displayError("<p>Failed to process selected file.</p>")
displayError([[<p>Failed to process selected file.</p>]])
end)
end

Expand Down
1 change: 1 addition & 0 deletions include/parasol/modules/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ enum class DEVICE : LARGE {
FIXED = 0x00008000,
PRINTER_3D = 0x00010000,
SCANNER_3D = 0x00020000,
BOOKMARK = 0x00040000,
};

DEFINE_ENUM_FLAG_OPERATORS(DEVICE)
Expand Down
3 changes: 2 additions & 1 deletion scripts/dev/idl/common.fdl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ flags("DEVICE", { bits=64, module="Core" },
"USB: Removable USB storage device. May be further qualified by `HARD_DISK`, `FLOPPY_DISK` etc",
"FIXED: Catch-all for fixed media devices that are not directly identifiable.",
"PRINTER_3D: Device is a three dimensional printer.",
"SCANNER_3D: Device is a three dimensional scanner.")
"SCANNER_3D: Device is a three dimensional scanner.",
"BOOKMARK: This marker indicates that the presented volume is a bookmark and not a device name.")

flags("CCF", { comment="Class categories", module="Core" },
"COMMAND: Command classes perform specific procedures, like copying or moving a file, managing volumes or executing a program.",
Expand Down
Loading
Loading