file-format

Command line option to open mac formatted file in Vim

百般思念 提交于 2019-12-09 17:04:45
问题 I have a file with mac format, I know I can use :e! ++ff=mac to change to the correct fileformat. What I'd like to know is if there is a command line option I can pass when I open the file to open it directly with the correct fileformat. 回答1: You can do this using the command line, try: $ vim -c "set fileformat=mac" -c <command> executes before loading the first file. As jammessan has noted, this will only affect the first file that is loaded, subsequent files will require that you change

Book translation data format

回眸只為那壹抹淺笑 提交于 2019-12-09 13:35:16
问题 I'm thinking of translating a book from English to my native language. I can translate just fine, and I'm happy with vim as a text editor. My problem is that I'd like to somehow preserve the semantics, i.e. which parts of my translation correspond to the original. I could basically create a simple XML-based markup language, that'd look something like <book> <chapter> <paragraph> <sentence> <original>This is an example sentence.</original> <translation lang="fi">Tämä on esimerkkilause.<

good file format for WebGL [closed]

﹥>﹥吖頭↗ 提交于 2019-12-08 19:13:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . There are many alternatives on 3D file formats, but i need smallest file size + textures at least? I've tried some but i need some advice? 回答1: I'm totally biased here (i'm a project member of what i'm suggesting), but you can use the Blender WebGL exporter with the JSON format... models are very small and it is

How to recognize an image file format using its contents?

≯℡__Kan透↙ 提交于 2019-12-08 02:18:17
问题 If a Image file is of format .png then it will contain ‰PNG , at the beginning of the file. (when read in Text mode) If a Image file is of format .bmp then it will contain BM , at the beginning of the file. (when read in Text mode) I know that Image formats contain text (data) of certain size (bytes) in the beginning of the file, which is used as metadata of the Image file? My Questions are:- Is this behavior same in all image file formats (or formats in general)? Could a image file ( of no

Parsing the Hershey font format

瘦欲@ 提交于 2019-12-08 01:49:07
问题 Hershey is a text-based vectorial font format defined here: http://paulbourke.net/dataformats/hershey/ The structure is bascially as follows: each character consists of a number 1->4000 (not all used) in column 0:4, the number of vertices in columns 5:7, the left hand position in column 8, the right hand position in column 9, and finally the vertices in single character pairs. All coordinates are given relative to the ascii value of 'R'. If the coordinate value is " R" that indicates a pen up

How to know file type without extension

十年热恋 提交于 2019-12-08 00:47:54
问题 While trying to come-up with a servlet based application to read files and manipulate them (image type conversion) here is a question that came up to me: Is it possible to inspect a file content and know the filetype? Is there a standard that specifies that each file MUST provide some type of marker in their content so that the application will not have to rely on the file extension constraints? Consider an application scenario: I am creating an application that will be able to convert

What's the format of the OpenOffice dictionaries?

微笑、不失礼 提交于 2019-12-07 14:22:41
问题 Does anyone know what the format of the OpenOffice dictionary files are? As far as I can see there is one word per line, and some flags that presumably tells me something about the word. Here's a couple of lines from the english dictionary as an example: absoluteness/S absorbency/SM abstract/ShTVDPiGY absurdness/S And from the Norwegian dictionary, which is what I'll use: flatorm/AEG flatpresse/W flatseng/ACEG flatside/ACDEFGHJ flatskjerm/A What does for instance "/AEG" and "/S" mean? I

File Type - Get Original Extension

徘徊边缘 提交于 2019-12-07 06:21:26
问题 How to find file extension if the file has been renamed? Is there any tool are available for this? Example: I have a file "1.doc"; I hope everybody know this is a Word document I just renamed as "1.txt". But the file is a Word document originally; how can I get the original file extension? 回答1: Of Course You can :) This is the C# code for you. I guess you can bulid your own tool ;) using System.Runtime.InteropServices; using System.IO; using Microsoft.Win32; [DllImport(@"urlmon.dll", CharSet

Simple wireframe format?

雨燕双飞 提交于 2019-12-07 04:56:47
问题 I'm looking for a simple file format to use for wireframe models. I am aware of VRML, u3D, etc, but these seem heavyweight for my needs. My criterea are: Must have a clear spec. Either open or very well established/documented. I only need (want) simple models - vertices and edges. I don't want to handle faces or objects. If the format supports more, that's fine so long as I can ignore them. End-user tools are not a requirement, but would be great. If not, it must be human readable (and

Formats for Saving Vector-based 3D Graphics

*爱你&永不变心* 提交于 2019-12-07 04:14:52
问题 I have written a vector-based 3D editor (UI customized somewhat like technical drawings). I now want save the vectors/drawing data in portable formats. Which formats are available; which (one?) of them are the most widely accepted, and where can I get hold of the format specifications? 回答1: Commercially, many users will look for AutoCAD DWG and Bentley DGN formats. While not free, libraries for producing these formats can be found from the open design alliance The GIS community use shape