Open Mehver opened 2 years ago
I wish I could open PR to add these languages. However, I only understand the languages.yml
file, but have no idea with Ruby.
I agree with this. It would be nice to have .stl
and .f3d
show up in the language stats.
@Mehver If you're having issues with setting up Ruby on your machine, you could always use the Codespace feature (see the button at the top of the README). Using the codespace, you'll be able to have a vitrual environement with all you need to run the scripts required to add a new language to Linguist.
I'm a noob programmer, but I also a noob hardware developer š¤Æ
Although there is also a lot of open source hardware in GitHub, many hardware engineers have no idea with linguist. This is probably why I keep getting unsupported hardware formats when editing
.gitattributes
. So now I list up some common engineering formats, hoping to get support.It is worth mentioning that some common formats in hardware design already exist in
languages.yml
. Such asKiCAD
Altium Designer
Eagle
Gerber Image
Wavefront Object
STL
... Yes, none of them are programming languages, they are considered asdata
by default, and the identification of these file types must be manually increased in.gitattributes
. But it still makes sense to expose these formats as languages, because it really helps hardware designers quickly find the items they need.It's really important to differentiate these formats from design softwares with language statistics. Because like when a Python developers is looking for sorting algorithms, they wouldn't expect to find a repo written in Java. That's why I wrote an all-in-one
.gitattributes
and use it in all my hardware projects.Those formats below are what I wish to add support for. They are similar to the existing ones, also files of circuit design software or files of 3D/2D design softwares:
1 LCEDA (a.k.a EasyEDA) -->ćWikipediać<--
A free circuit design software. Similar to KiCAD, Eagle and Altium Designer.
editorVersion
canvas
shape
editorVersion
canvas
schematics
2 Autodesk Fushion 360 -->ćWikipediać<--
An industrial modeling design software that is very popular among hardware enthusiasts. It has a compositional relationship with Eagle.
3 Computer Aided Design (CAD) -->ćWikipediać<--
Common format standard. The CAD file in the narrow sense refers to
.dwg
and.dxf
format, which is the most suitable format for CAD packages. The most mainstream CAD package is AutoCAD.4 Initial Graphics Exchange Specification (IGES) -->ćWikipediać<--
Common format standard. Extensive CAD.
5 STEP -->ćWikipediać<--
Common format standard. Also extensive CAD, ISO_10303-21.