Arabic USB Cable Tag
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
Avoid getting your USB cable stolen by your siblings. Add your name on you tags. Also you can gift it to your loved ones
- Rating
- 0 / 5
- Likes
- 1
- Downloads
- 10
- Makes
- 0
- Views
- 58
- Reviews
- 0
Updated at source:
Model information
- Source
- Printables
- Category
- Accessories
- License
- GNU General Public License v3.0
I order to generate tags for a name or names you need to install OpenScad.
The used font is Almarai.
then you can run this script in the same folder:
#!/bin/bash
# Configuration
INPUT_NAME_FILE="name.scad"
INPUT_BOTTOM_FILE="bottom.scad"
OPENSCAD_PATH="openscad" # Adjust if not in your PATH (e.g., /usr/bin/openscad)Define your Arabic labels as an array
declare -a TAGS=("فاطمة" "منيرة" "مدى" "امال")
Loop through and generate STLs
for TEXT in "${TAGS[@]}"; do
# Generate a unique filename (e.g., tag_امال.stl)
OUTPUT_FILE="tag_${TEXT}.stl"
OUTPUT_BOTTOM_FILE="tag_${TEXT}_bottom.stl"
echo "Processing: $TEXT -> $OUTPUT_FILE + $OUTPUT_BOTTOM_FILE"
# Run OpenSCAD in headless mode
# The double-quotes are escaped so OpenSCAD sees: text_to_show="text"
# To change font pass -D "font_name=FONT:style=STYLE"
# Font style can be Bold or what ever style that this font support
$OPENSCAD_PATH -o "$OUTPUT_FILE" -D "text_to_show=\"$TEXT\"" "$INPUT_NAME_FILE"
$OPENSCAD_PATH -o "$OUTPUT_BOTTOM_FILE" -D "text_to_show=\"$TEXT\"" "$INPUT_BOTTOM_FILE"
done
echo "Batch processing complete."
After printing glue "tag_NAME.stl" on "USB Tag - Top.stl"
If you want to use other font you can update both .scad file font_name variable or pass it in the script above.